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

SQL ²éѯǰһÌìµÄÊý¾Ý

select * from Client_Table where InputDate=dateadd(dd,-1,getdate()) È¡²»µ½ÈκÎÊý¾Ý
select * from Client_Table where datediff(dd,InputDate,getdate()) <=1 ͬÑùÈ¡²»µ½ÈκÎÊý¾Ý
SQL code:
select * from Client_Table where cast(InputDate as datetime)=getdate()-1


²»³ö´í£¬Ò²µÃ²»µ½ÈκÎÊý¾Ý

ÒýÓÃ
select * from Client_Table where InputDate=dateadd(dd,-1,getdate()) È¡²»µ½ÈκÎÊý¾Ý
select * from Client_Table where datediff(dd,InputDate,getdate()) <=1 ͬÑùÈ¡²»µ½ÈκÎÊý¾Ý


Èç¹ûÕâÌõÈ¡²»µ½Êý¾Ý,¾ÍÊÇÄã±¾Éí²»´æÔÚ×òÌìµÄÊý¾Ý.

SQL code:
select * from Client_Table where datediff(dd,InputDate,getdate()) <=1


Äã¿ÉÒÔ³¢ÊÔ¿´¿´:

SQL code:
select * from Client_Table where convert(varchar(10),InputDate,120) = '2009-11-21'


SQL code:

select * from Client_Table where datediff(dd,cast(InputDate as datetime),getdate()) <=1



Ïà¹ØÎÊ´ð£º

sqlת»»ÎÊÌ⣬¼±£¡ - ÉçÇøÖ§³Ö / ¡¶³ÌÐòÔ±¡·ÔÓÖ¾

select convert(varchar(50),cast(convert(numeric(18,2),1275674000000/100000000)as real))+'ÒÚ'
select cast(convert(numeric(18,2),1275674000000/100000000)as real)
ΪʲôÉÏÒ»¸öÓÃvarcharת»»ºó¾ÍÖ»±£ÁôÁËÒ ......

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

sql º¯ÊýÎÊÌâ

sql 2005Êý¾Ý¿âÎÒÏëµÃµ½Ò»×Ö·û´®Îª:
sldkf|||sdeww
erkv|||rltdk
jemcl|||ligf
¾ÍÊÇ|||ºóÃæµÄ×Ö·ûÓÐʲôº¯ÊýÄܵõ½Âð£¿ÊÇÔÚsqlÓï¾äдµÄ£¬²»ÊÇÔÚÒ³ÃæÐ´µÄ£¬ÄÇλ¸ßÊÖÀ´Ö¸½ÌÏ£¬ÐÂÊÖ£¬Ð»Ð»
ÔΠ µ ......

ÇóÒ»¸öSQLµÃ²éѯÓï¾ä

ÒÑÖªÒ»¸ö¹©Ó¦Çé¿ö±í SPJ
ÓÐÊôÐÔ ¹©Ó¦É̺ÅÂë SNO
  Áã¼þºÅÂë PNO
  ¹¤³ÌÏîÄ¿ºÅÂë JNO
  Áã¼þÊýÁ¿ QTY
ÇóÂú×ãÏÂÃæÒªÇóµÄ¹©Ó¦É̺ÅÂ룬¸Ã¹©Ó¦É̹©Ó¦¸øÄ³¸ö¹¤³ÌÁã¼þP1 µÄÊýÁ ......

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

Course(C#,Cname,T#) ¿Î³Ì±í 
SC(S#,C#,score) ³É¼¨±í 
Teacher(T#,Tname) ½Ìʦ±í 
ÌâÄ¿£º°Ñ¡°SC¡±±íÖС°Ò¶Æ½¡±ÀÏʦ½ÌµÄ¿ÎµÄ³É¼¨¶¼¸ü¸ÄΪ´Ë¿Î³ÌµÄƽ¾ù³É¼¨£» 
 update SC set sco ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ