ÏÖÓÐMYSQLÓï¾ä SQL code: select t.id,a.uid,a.uname,t.ucomment,t.utime from a left join b t using(uid) where 2>(select count(*) from b where uid=t.uid and utime<t.utime) and a.uid<=6
²»¹ý´Ë´¦µÄa.uid <6°ÑuidµÄÖµ¹Ì¶¨×¡ÁË£¬ ÈçºÎÐÞ¸Äһϣ¬ÀûÓÃuidµÄÖµ½øÐзÖÒ³²éÑ¯ÄØÖ»ÓÐÓÃSP£¬½«²ÎÊý´«µÝ½øÈ¥ ÀàËÆ select t.id,a.uid,a.uname,t.ucomment,t.utime from a left join b t using(uid) where 2>(select count(*) from b where uid=t.uid and utime <t.utime) and a.uid <=cuid
call sp(6) select t.id,a.uid,a.uname,t.ucomment,t.utime from a left join b t using(uid) where 2>(select count(*) from b where uid=t.uid and utime <t.utime) limit 20,10
ÏÈÉÏ´íÎó ÎÞ·¨Áª½ÓÊý¾Ý¿â java.sql.SQLException: Before start of result set at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910) at com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java: ......