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 > Need Help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-11, 11:08
chavala chavala is offline
Registered User
 
Join Date: Jul 2011
Posts: 13
Need Help

string query = "update usage SET Name = TRIM(Both '"' from Name) where duration >0";

when i am trying to write this query in my code....After the Both i have one '' (double quotations). system is considering
as one string
"update usage SET Name = TRIM(Both '"
and this one as second string....
' from Name) where duration >0";
I'm getting error saying ;--missing...


Please help me
Reply With Quote
  #2 (permalink)  
Old 07-13-11, 12:23
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
please explain what it is that you're trying to trim off the name and why
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-13-11, 13:04
chavala chavala is offline
Registered User
 
Join Date: Jul 2011
Posts: 13
Thank you rt937 for your response...
I got the solution....
I modified the query it was typing mistake.....
Reply With Quote
  #4 (permalink)  
Old 07-14-11, 07:00
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Perhaps you should do a little work yourself before posting to us then.
It might also be worth putting in a proper title to your post as everyone who posts here needs help (in one way or another).
Not only does this ensure you get a better response it also doesn't waste people's time.
__________________
Mike
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