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

sql²éѯÎÊÌâ

"select * from SMSHis where sender='"+TextBox1 .Text +"', senttime between '"+Convert .ToDateTime (TextBox2 .Text .Trim ())+"' and '"+Convert .ToDateTime (TextBox3 .Text .Trim ())+"'"
Ëû˵ÎÒ ',' ¸½½üÓÐÓï·¨´íÎó
ÇëÖ¸½Ì
ÉÙwhere

, ¸Ä³Éand »òÕß or ¡£¿´ÄãµÄÒµÎñÐèÇó

"select * from SMSHis where sender='"+TextBox1 .Text +"' and senttime between '"+Convert .ToDateTime (TextBox2 .Text .Trim ())+"' and '"+Convert .ToDateTime (TextBox3 .Text .Trim ())+"'"

ÒýÓÃ
"select * from SMSHis where sender='"+TextBox1 .Text +"', senttime between '"+Convert .ToDateTime (TextBox2 .Text .Trim ())+"' and '"+Convert .ToDateTime (TextBox3 .Text .Trim ())+"'"
Ëû˵ÎÒ ',' ¸½½üÓÐÓï·¨´íÎó
ÇëÖ¸½Ì


select * from ... where ... and
Convert .ToDateTime (TextBox3 .Text .Trim ())+"'"͉˕
and TextBox3.Text

ÓÐÒ»¸öwhereÁ˰¡£¬»¹ÒªÂð£¿


sender='"+TextBox1 .Text +"',
senttime between '

¶ººÅ »»³Éand

ÉÙand°É£¿¶ººÅ£¿    ~~



¸Ä´í£º²»ÊÇÉÙwhere£¬¶ººÅ¸Ä³Éand£»±§Ç¸¡£¡£¡£¡£

Çë²Î¿¼2Â¥

6£¬7Â¥£¬Ð»Ð»ÁË£¡£¡£¡£¡£¡

ºÇºÇ¡¢¡¢¡¢ÕâÖÖ´íÎó£¬Â¥Ö÷Ö÷Òªµ÷ÊÔ¸ú×Ùһϣ¬°Ñ×îÖÕÉú³ÉµÄSQLÓï¾äÀ­³öÀ´£¬ÔÚÊý¾Ý¿âÖÐÖ´ÐУ¬Ò»Ä¿ÁË


Ïà¹ØÎÊ´ð£º

ÇóÒ»sqlÓï¾ä - MS-SQL Server / »ù´¡Àà

±í
id bh  
1 10
2 11
3 12 
4 15
5 16
6 22
7 25
8 26
9 27
10 28
½«bh°´Á¬Ðø·Ö¶Î³öÀ´·µ»Ø×Ö·û´®£º
10~12£¬15~16£¬22£¬25~28
SQL code:


declare @t tabl ......

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

select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' 
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......

ÇëÎÊASPÈçºÎÁ¬½Ó¶à¸öSQL SERVER£¿ - Web ¿ª·¢ / ASP

ÓÐÁ½¸ö»òÒÔÉϵÄÔ¶³ÌÊý¾Ý¿â£¬ÈçºÎÓÃASP¼ì²âÁ¬½ÓËٶȲ¢Á¬½Ó×î¿ìµÄMSSQLÊý¾Ý¿â£¿

ÓÐÕâÑùµÄASPº¯ÊýÂð£¿ÎÒGOOGLEÁËһϣ¬ÕÒ²»µ½¡£

PHP+MYSQLÏÂÓÐÕâÖÖÀý×Ó£º
PHP code:

Example:
$wgDBservers = array(
......

ÈçºÎʹÓÃMySQL - MS-SQL Server / »ù´¡Àà

¸Õ¸Õ½Ó´¥MySQL,²»ÖªµÀ¸ÃÈçºÎÈ¥²é¿´Êý¾Ý£¬²åÈëÊý¾Ý£¬´´½¨Êý¾Ý¿â¡¢±í£¬ÓÃÄÄΪǰ±²ÄÜÖ¸½ÌÒ»¶þ£¿

MySQL 5.1²Î¿¼ÊÖ²á

ÒýÓÃ
ÐÖµÜÄã»á½áÌùÂð£¿
mysql ²Î¿¼ÊÖ²á

baidu

MySQL¹Ù·½Îĵµ http://dev.mysql.com/doc ......

ÇóÒ»¸öSQLÓï¾ä - MS-SQL Server / »ù´¡Àà

×Ö¶Î1,×Ö¶Î2.....×Ö¶ÎN,Status,ParentID
1,Name1....test1,1,99
1,Name1....test1,3,99
1,Name2....test2,1,101
1,Name2....test2,3,101
1,Name3....test3,2,101
1,Name1....test1,4,101
ÏëÒªµÄ½á¹ûÊÇ:
1,Na ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ