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 > insert string

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-02-11, 11:08
patomilan patomilan is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
insert string

hello my friend... i want to ask:
how to insert the string,but not change the string position ?
example:

i want to insert in the left position

"abc" in " test"

the results "abc test"
Reply With Quote
  #2 (permalink)  
Old 06-02-11, 11:51
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
UPDATE mytable SET mycolumn = concat("abc", mycolumn)
WHERE something = somevalue
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 06-02-11, 22:44
patomilan patomilan is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
insert

sorry my friend my problem is how iam insert the some string but not change the position that string:

exm:
1. insert "abc" in " example" => the result "abcexample"
or
2. insert "abc" in "example" => the result "abcmple"
Reply With Quote
  #4 (permalink)  
Old 06-03-11, 04:37
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
? don't understand what you are trying to achieve
you could do it in SQL
you could do it in your front end
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
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