Each line in MySQL is terminated with a semicolon (;). You can break your
query into as many lines as you need, and just end the last one with a
semicolon.
C:\mysql\bin>mysql --user=root -p
Enter password: **********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.12-max-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use mysql
Database changed
mysql> select
-> user,
-> host
-> from
-> user
-> ;
+-----------+-----------+
| user | host |
+-----------+-----------+
| everserve | localhost |
| root | localhost |
+-----------+-----------+
2 rows in set (0.00 sec)
mysql>
-----Original Message-----
From: geeta varu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 9:05 PM
To: [EMAIL PROTECTED]
Subject: long query
if there is a long query i want to continue it
in next like
eg>....
Select canID from table1 where(text like '%a%' or text
lik
e '%b%') AND canID not in ( text like '%c%' or canID
like '%d%')
here i want to use some concatenation of lines any
solution
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php