> What's wrong with the following query? The application used to use > Access via ODBC, now running MySQL 3.23.xx, MyISAM table, accessed via > MyODBC 3.51.01. > > // Return last 20 searches > SELECT TOP 20 h.historyid, h.searchstring, h.serverid, s.shortname FROM > history h > INNER JOIN servers s ON h.serverid = s.serverid > WHERE h.employeeid = 9 > ORDER BY h.historyid DESC > > Works fine once I remove the "TOP 20" from the query. If this isn't > supported, is there an equivalent? > > Thanks, > Jim > > remove TOP 20 from front, add 'limit 20' to back.
William R. Mussatto, Senior Systems Engineer Ph. 909-920-9154 ext. 27 FAX. 909-608-7061 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]