[jboss-user] [Installation, Configuration & Deployment] - Re: MySQL SQL Syntax Problem

johnurban do-not-reply at jboss.com
Sat Sep 23 13:25:00 EDT 2006


... a bit more research. MySQL [5.0] reference manual does not have a keyword TOP for a select sql paragraph:

http://dev.mysql.com/doc/refman/5.0/en/select.html

SELECT
    [ALL | DISTINCT | DISTINCTROW ]
      [HIGH_PRIORITY]
      [STRAIGHT_JOIN]
      [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
      [SQL_CACHE | SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS]
    select_expr, ...
    [FROM table_references
    [WHERE where_condition]
    [GROUP BY {col_name | expr | position}
      [ASC | DESC], ... [WITH ROLLUP]]
    [HAVING where_condition]
    [ORDER BY {col_name | expr | position}
      [ASC | DESC], ...]
    [LIMIT {[offset,] row_count | row_count OFFSET offset}]
    [PROCEDURE procedure_name(argument_list)]
    [INTO OUTFILE 'file_name' export_options
      | INTO DUMPFILE 'file_name'
      | INTO @var_name [, @var_name]]
    [FOR UPDATE | LOCK IN SHARE MODE]]

How can we get rid of the "top" keyword in the SQL string?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973716#3973716

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973716



More information about the jboss-user mailing list