You hava an error in your SQL syntax ; check the manual that corresponds to your MySQL server for the right
syntax to use near '2 * from use_table) t' at line 1SQL code: mysql ÀïÃæ¿ÉÒÔÕâÑùдô£¿£¿²»¶®£¬°ï¶¥... delete t from (select top 2 * from use_table) t
delete t from t where ¹Ø¼ü×Ö in (select top 2 ¹Ø¼ü×Ö from use_table) ÎÒµÄmysql-5.0.22-win32ÀïÊÔÁË£¬Ã»ÓÐÕâ¸öÓï·¨ SQL code: delete from ±íÃû where Ìõ¼þ in (select top 2 Ìõ¼þ from ±íÃû )
code=SQL]delete from use_table limit 2;[[/code] {{
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......