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 come out of this line

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-08, 20:53
rkhanal rkhanal is offline
Registered User
 
Join Date: Mar 2008
Posts: 22
How to come out of this line

Hi guys,
How do we come out from this line. Sometime i get stock in this line and dont know how to come back. For example:-
Reply With Quote
  #2 (permalink)  
Old 04-02-08, 20:55
rkhanal rkhanal is offline
Registered User
 
Join Date: Mar 2008
Posts: 22
mysql> SELECT name, owner
-> FROM pet
-> '
'>
'> exit
'> escape
'>
'>
'>
'>
'>
'>
Reply With Quote
  #3 (permalink)  
Old 04-03-08, 03:49
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
try the semi colon ;
which terminates most, if not all SQL statements
Reply With Quote
  #4 (permalink)  
Old 04-03-08, 06:04
aschk aschk is offline
Registered User
 
Join Date: Mar 2007
Location: 636f6d7075746572
Posts: 770
You need to close the string before you can exit, so use:

' ;
Reply With Quote
  #5 (permalink)  
Old 04-03-08, 20:24
rkhanal rkhanal is offline
Registered User
 
Join Date: Mar 2008
Posts: 22
Thanks guys
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