Sean,
Thursday, October 10, 2002, 10:54:24 PM, you wrote:
SM> In a previous job I had the (mis)fortune to develop software exclusively on
SM> DB2. While doing so I would often use FETCH to examine a certain number of
SM> records. Example:
SM> SELECT * from table FETCH FIRST 10 ROWS ONLY.
SM> When I use this particular syntax in any mysql interface (I've used 2) I get
SM> syntax error statements. Now either I have forgotten the exact syntax
SM> (unlikely, but possible) or mysql doesn't support this. Assuming the
SM> latter, is there an alternative method to acheive my desired result or do I
SM> have the syntax wrong?
You can use LIMIT clause, f.e.
SELECT * FROM table_name LIMIT 10;
http://www.mysql.com/doc/en/SELECT.html
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.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