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 > String Manipulation within a query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-31-04, 16:50
grami04 grami04 is offline
Registered User
 
Join Date: Dec 2003
Posts: 2
Red face String Manipulation within a query

I am looking to manipulate a string to have a return set displayed as follows:

Field Name 1: f1
Field Name 2: f2

I have tried this query using C/C++ escape characters, under the false pretense that it would work:

SELECT CONCAT("Field Name 1: ", f1, "\n\r", "Field Name 2: ", f2 ) FROM table 1

* thought "\n\r" would be new line and return

Please be kind, I am a relative newbie.
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