Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Çó¸ßÊÖÐÞ¸ÄÒ»MYSQLÓï¾ä

ÏÖÓÐ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

limit 20,10 ÏÔʾµÚ21Ìõ¼Ç¼µ½µÚ30¹²10Ìõ¼Ç¼¡£Äã¿ÉÒÔÓÃÕâ¸öÀ´·ÖÒ³¡£

ÒýÓÃ
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

limit 20,10 ÏÔʾµÚ21Ìõ¼Ç¼µ½µÚ30¹²10Ìõ¼Ç¼¡£Äã¿ÉÒÔÓÃÕâ¸öÀ´·ÖÒ³¡£


ÿҳҪ²é³ö10¸öuidÏà¶ÔÓ¦µÄÐÅÏ¢£¬ËùÒÔ˵ÕâÑùÊDz»ÐеÄ

http://topic.csdn.net/u/20100108/15/62c5af0c-3ba4-4816-8117-02b489db57cd.html
½¨SQLÓï¾äÔÚÕâ¸öÁ´½ÓÀïÃæ



Ïà¹ØÎÊ´ð£º

c#¿ØÖÆMysql ʵÏÖ×Ô¶¯É¾³ý¹¦ÄÜ - .NET¼¼Êõ / C#

Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......

MYSQLÈçºÎÓëC++Á¬½Ó£¿ - VC/MFC / Êý¾Ý¿â

ÎÒÊÇÐÂÊÖ£¬³õѧMYSQL£¬Óкܶ಻¶®£¬Íû´Í½Ì£¡£¡
±ÈÈç˵ÎÒн¨Ò»¸öMYSQLÊý¾Ý¿âUSER Êý¾Ý¿âÖÐÓбíLIST 
È»ºóÎÒÔÚVCÖÐн¨Ò»¸öMFC¶Ô»°¿ò¹¤³Ì£¬È»ºóÎÒÔõôÑù²ÅÄÜÓÃVC»ñµÃÊý¾Ý¿âÖбíµÄÊý¾Ý£¿
Ï£Íû¸ø³ö¾ßÌåµÄ²Ù×÷² ......

eclipseÁ¬½ÓmysqlÊý¾Ý¿â - Java / Eclipse

ÏÈÉÏ´íÎó
ÎÞ·¨Áª½ÓÊý¾Ý¿â
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: ......

mysqlÁ¬½Ótomcat - Java / Web ¿ª·¢

ÎÒÒѾ­°´Õս̳ÌÉÏÅäÖÃtomcatµÄserver.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......

ÎÊÒ»¸ö×Ö·û¼¯µÄÎÊÌ⣬´Ómysql°æÀ´

Ô­ÌûÇë¿´
http://topic.csdn.net/u/20100115/09/98c6ac75-d6fe-4b6c-90dc-336a738a0c0f.html?14601
×ܽáϾÍÊÇ
apache php mysql ÎÒÈ«²¿¶¼ÓõÄÊÇgb2312£¬ÓÐʲô°ì·¨¿ÉÒÔ²»ÓÃÿ´Îmysql_query('SET character_set_r ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ