If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How to comma a string with SQL statement?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-29-04, 17:45
Analyzer Analyzer is offline
Registered User
 
Join Date: Apr 2004
Posts: 38
How to comma a string with SQL statement?

Hi there,

I have quite long integer fields and i would like to see them seperated with comma in DBGrid like this :

Data in DB --> 100000000
Data in Grid --> 100,000,000

Can i do this with SQL statements?

My second question is : I have a DB and stores 2 integer fields.I have 3 predefined fields and 2 of them shows these fields.Can i show the sum of 2 fields in the third field? Like this :

In DB :

Field1 Field 2
------ -------
3 2

In Grid :

Field1 Field 2 Field 3
------ ------- ------
3 2 5

Thanks in advance.

Coolio
Reply With Quote
  #2 (permalink)  
Old 06-02-04, 09:33
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
All of your questions are presentation issues (affecting how information is displayed), not storage/retreival questions (affecting how information is managed). They all can and should be dealt with in the DBGrid instead of in the database.

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On