select * from cpxx where cplbsz="+n+" order by quan desc Õâ¾ä»° È¡³öÀ´µÄ ÄÚÈݰ´Ê²Ã´ÅÅÁÐ ÊÇÏȰ´QUAN×Ö¶Î ´Ó´óµ½Ð¡ÅÅ µ«ÎÒµÄQUAN×Ö¶ÎÀï ¾Í¼¸¸ö¸ø¸¶ÖµÁË ÆäËûµÄ¶¼ÊÇĬÈÏÖµ0 ÄÄÆäËûµÄÄÚÈÝ Êǰ´Ê²Ã´ÅÅÁеÄÄØ
sqlÓï¾äÄãдµÄ£¬Ä㻹ÎʱðÈËÔõôÅÅÐò£¿ ²»ÊÇ ÎÒµÄÒâ˼µÄ Èç¹û ¾Í°´Õâ¸öSQLÓï¾ä QUAN×Ö¶ÎÀïÈ«ÊÇ0 ÄÇ ÄÚÈݸù¾ÝʲôÅÅÐò ËûÏÖÔÚÅÅÐòºÅÂÒ order by quan desc,content asc ½µÐòÅÅÁÐ select * from cpxx where cplbsz="+n+" order by quan desc °Ñquan,»»³ÉÄãÏëÅÅÐòµÄ×ֶξͿÉÒÔÁË desc ÊǽµÐòÅÅÁÐµÄ ÄãдÕâ¸öÓï¾ä¾ÍÊÇÒÑquanÕâ¸ö×ֶνøÐнµÐòÅÅÁÐ Èç¹û×Ö¶ÎΪÊýÖµÐ͵ÄÔò´Ó´óµ½Ð¡ÅÅÁУ¬Èç¹ûÊÇ×Ö·û´®Ð͵ÄÔòÒÔa¡¢b¡¢c¡¢dµÄ½µÐòÅÅÁÐ ÄãÏëÔõôÅžÍÔõôÅÅ£¡~~ ±ÈÈçÄãÏȰ´quan×ֶεĽµÐòÅÅ£¬ÄÇôΪÁãµÄÔõô´¦ÀíÄØ£¿£¿ ÕâʱÄã¿ÉÒÔ¸ù¾ÝÆäËû×Ö¶ÎÉýÐò»ò½µÐòÀ´ÅÅ¡£¡£ ¾ÍÕâôдSQL£º SQL code:
select * from cpxx where cplbsz="+n+" order by quan desc,ÆäËüµÄij×Ö¶Î asc/desc