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

¹ØÓÚÒ»¸öSQLÓï¾ä

select top 15 * from LBBrandInfo where LBid not in (select top 15 LBid from LBBrandInfo where LBmenId=0 and LBone=1 order by LBid desc) and LBone=1 and order by LBid desc

ÎÒ»¹ÏëÔÚÍâΧ¼ÓÒ»¸öÌõ¼þ ¾ÍÊÇÔÚdesc) and LBone=1µÄºóÃæ ¼ÓÒ»¸öÌõ¼þ ÊÇLBmenId=0 ÎÒ²»ÖªµÀÔõô¼ÓÁË Çë¸÷λ´óÏÀ°ï°ïæ
ûÕûÃ÷°×  Äãµ½µ×Ïë¸Éʲô


Òâ˼¾ÍÊÇ ×îºóµÄ²éѯÌõ¼þÊÇLBone=1 LBmenId=0

select top 15 * from LBBrandInfo where LBid not in (select top 15 LBid from LBBrandInfo where LBmenId=0 and LBone=1 order by LBid desc) and LBmenId=0 and LBone=1 and order by LBid desc

and LBone=1µÄºóÃæ ¼ÓÒ»¸öÌõ¼þ ÊÇLBmenId=0

and ( LBone=1 or LBmenId=0)???


and  LBone=1 and LBmenId=0???




SQL code:
select top 15 * from LBBrandInfo where LBid not in (select top 15 LBid from LBBrandInfo where LBmenId=0 and LBone=1 order by LBid desc) and LBone=1 and LBmenId=0 order by LBid desc
²»¾ÍÐÐÁË£¿£¿
ÄãÏëÈ¡µÚ¶þÒ³µÄ15Ìõ¼Ç¼£¿£¿Èç¹ûÄãÊÇSQL 2005µÄ»°£¬¿ÉÒÔʹÓãº
SQL code:

with PageTable as (select ROW_NUMBER() over (order by Member_UserID) 'RowNumber'£¬* from LBBrandInfo where LBmenId=0 and LBone=1 order by LBid desc) select * PageTable from where where RowNumber Between 16 and


Ïà¹ØÎÊ´ð£º

sql server - Java / Eclipse

Êý¾Ý¿âÒªÔõôѧ²Å²»»áÏԵóéÏó°¡£¿
Õâ¾ÍÒª¿´ÄãÊʺÏʲô·½·¨ÁË£¬Õâ¾ßÌå²»ºÃ˵µÄ.....

ÔõôÁË£¬ÄѵÀ´ó¼Ò¶¼²»»á£¬»¹ÊÇÕæµÄÌ«³éÏó´ó¼Ò²»ÖªµÀÔõô˵°¡

½áºÏÄã²Ù×÷Êý¾Ý¿âµÄÌå»áºÍÀí½â£¬Ó¦¸ÃЧ¹û»á¸üºÃ¡£·ñÔò£¬Ò ......

ÇóÒ»sqlÓï¾ä - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄǰ2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......

sql - MS-SQL Server / ÒÉÄÑÎÊÌâ

sqlµÄÈí¼þÔÚÄÄÀï¿ÉÒÔϰ¡£¡ÔÚÍøÉÏÕÒÁËÂù¶à¶¼Óò»Á˰¡

Ëæ±ã¸ãÒ»D°æ°É£¬

ѸÀ×µÚÒ»¸ö¾Í¿ÉÒÔÓÃ
2000,2005¶¼ÕâÑù

http://119.147.41.16/down?cid=0698C2D64D7D637D90A6D2482298E6717D4F15CD&t=2&fmt=-1 ......

sqlÓÅ»¯ - Oracle / »ù´¡ºÍ¹ÜÀí

select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' 
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ