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

SQLÓï¾äÎÊÌâ

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



quan×Ö¶ÎÀïÃæ´æ´¢µÄÊý¾ÝÊÇʲô£¿Èç¹ûÊÇÓ¢ÎÄÄÚÈÝ£¬ÄǾÍÊǸù¾Ýµ¥´ÊÅÅÐòµÄ£¡A--->Z

ÒýÓÃ
ÄãÏëÔõôÅžÍÔõôÅÅ£¡~~
±ÈÈçÄãÏȰ´quan×ֶεĽµÐòÅÅ£¬ÄÇôΪÁãµÄÔõô´¦ÀíÄØ£¿£¿
ÕâʱÄã¿ÉÒÔ¸ù¾ÝÆäËû×Ö¶ÎÉýÐò»ò½µ


Ïà¹ØÎÊ´ð£º

SQLÓï¾äÎÊÌ⣬¸ßÊÖ°ïæ£¡£¡

½«Ò»¸ö±í21~30ɾ³ý£¬sqlÓï¾äÔõôд
Õâ¸öÌ«ÁýͳÁË£¬ÊÇÅÅÐòºóµÄµÚ21Ìõµ½30Ìõ¼Ç¼ɾ³ý»¹ÊÇijһÁÐÖµÔÚ21µ½30Ö®¼äµÄɾ³ý°¡£¿

21-30ÊÇʲôÒâ˼£¿×ֶεϰ¾Ídelete from table1 where col1>=21 and col1<=30
Ö¸µ ......

sql ÎÊÌâ

DateTime startTime=DateTime(em_1.Text)
DateTime endTime=DateTime(em_2.Text)

string sql
sql = dw_1.GetSQLSelect()+"Where (StartTime> '"+startTime+"') and (EndTime ......

csvÎļþת»»³Ésqlµ¼Èëµ½Êý¾Ý¿â£¬Ã»ÓÐÊý¾ÝΪºÎ£¿

Ö´ÐеÄ˳Ðò£º
1£©Îļþä¯ÀÀ¿ò£¨Ñ¡ÔñÎļþʹÓã©
Ñ¡ÔñºÃÎļþºó
µã»÷Ò»¸öµ¼Èë°´Å¥µÄʱºò £¬°ÑÉÏÃæÉÏ´«¿òÀïµÄcsvÎļþÒÔÒ»¸öIDΪÎļþÃû£¬ÉÏ´«µ½**/**Îļþ¼ÐÏÂ
2£©¶ÁÈ¡Õâ¸öÎļþ¼ÐϵÄcsvµÄÎļþ£¬×ª»»³Ésql
3 ......

oracle sql developer ²éѯÏÔʾÖÐÎÄÂÒÂë

»·¾³£º1.win2003server+oracle9i
2.oracle9i×Ö·û¼¯ÎªAMERICAN_AMERICA.WE8ISO8859P1
3.oracle sql developer°æ±¾ 1.5.5
ÏÖÏóÃèÊö: 1.ÔÚsql developer ÖвéѯoracleÖеÄij¸ö±í£¬ÖÐÎÄÈ«²¿ÏÔʾΪÂÒÂë¡£ ......

sql¿ÉÒÔÓÐÁ½¸öÒÔÉϵĴ¥·¢Æ÷Â𣿣¿

sql¿ÉÒÔÓÐÁ½¸öÒÔÉϵĴ¥·¢Æ÷Â𣿣¿ÎÒÖ¸µÄÊÇfor´¥·¢Æ÷£¬ÄÇÆäËûµÄÄØ£¿£¿
ʲôÒâ˼£¿

¿ÉÒÔµÄ

10¸ö¶¼Ã»ÎÊÌâ

¿ÉÊÇÎÒдÁËÁ½¸öfor insert ´¥·¢Æ÷£¬Ôì³É½ø³Ì×èÈûÁËÄØ£¿Ôõô°ìÄØ£¿Çë¸ßÈËÖ¸µã
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ