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] {{
CREATE DATABASE ADDRESSLIST; USE ADDRESSLIST; DROP TABLE IF EXISTS FRIEND; CREATE TABLE FRIEND (FRIEND_ID INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY , FRIEND_NAME VARCHAR(20) NOT N ......
String sqlCount="select count(*) from usertable where username='"+ userName+"'";Õâ¾ä»° ʲôÒâ˼°¡£¡ Õâ¾ä»°Êä³ö³öÀ´¾ÍÊÇ select count(*) from usertable where username='ÄãµÄ±äÁ¿ ......