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

ÇóÒ»ÌõmssqlÓï¾ä..?? - MS-SQL Server / »ù´¡Àà

ÇóÒ»ÌõmssqlÓï¾ä..??
±í news  
×Ö¶Îdtime µÄÀàÐÍÊÇdatetime
ÎÒҪɾ³ýËùÓÐ µ±Ç°·þÎñÆ÷ʱ¼ä¼õÈ¥ dtime×ֶδóÓÚ5ÌìµÄ¼Ç¼( getdate()-dtime )>5 µÃÔõôд.Çë´Í½Ì?? 

SQL code:
datediff(dd,dtime,getdate())>5


SQL code:
select *
from news
where datediff(dd,dtime,getdate())>5


SQL code:
dtime<dateadd(dd,-5,getdate())


д·¨Òª¸Ä³ÉÕâÑù×îºÃ

ÒýÓÃ

SQL code
datediff(dd,dtime,getdate())>5


´ó¸çÄܲ»ÄÜ°ïÎÒдÍêÕûÒ»µã..ÎÒÒ²ÊÇÓõ½datediff(dd,dtime,getdate())>5 µ«ÀÏÊÇÖ´Ðв»³É¹¦ лл

SQL code:
delete news where dtime<dateadd(dd,-5,getdate())


ÔÎ

SQL code:
delete news where datediff(dd,dtime,getdate())>5
Õâ¸öÓ¦¸ÃÄܳɹ¦°¡

²»³É¹¦±¨Ê²Ã´´íÎó?

лл.¸÷λ..

ѧϰÏ Óкô¦µÄ


Ïà¹ØÎÊ´ð£º

Êý¾ÝÒÔxml¸ñʽ·µ»Ø - MS-SQL Server / Ó¦ÓÃʵÀý

´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......

¹ØÓÚACCESSºÍMSSQLµÄÎÊÌâ - Web ¿ª·¢ / ASP

ÓÐÒ»¸öÊý¾Ý¿âÀïÖ»ÓÐ2WÌõÊý¾Ý²»µ½£¬È´ÓÐ500MÄÇô´ó,Ôõô»ØÊ°¡£¿ÊÇACCESSµÄÊý¾Ý¿â¡£ºóÀ´ÎÒ°ÑACCESSµ¼Èëµ½MSSQLÖУ¬Ò²Õ¼ÓÃÁË500M×óÓҵĿռ䣬Èç¹ûѹËõÊý¾Ý¿âÄØ£¿Çë¸ßÊÖÖ¸µã
ѹËõÊý¾Ý¿â£¿ÄÜ×öµ½Ã´...
ÆÚ´ý¸ßÈËÖ¸µã ÎÒ ......

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

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

MYSQLµ÷¶ÈµÄÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ


3̨µçÄÔ£¬ÆäÖÐһ̨×÷ΪMYSQL·þÎñÆ÷£¬ÁíÍâ2̨ΪTOMCAT·þÎñÆ÷¡£
MYSQL·þÎñÆ÷ÀïÓÐÒ»Ìõ¼Ç¼£¬ IDΪ10.
ÏÖÔÚ2̨TOMCATͬʱ£¨100%£©·¢ÆðÐÞ¸ÄMYSQLÀïIDΪ10µÄÄÇÌõ¼Ç¼£¬±ÈÈçÐ޸ĴËID¼Ç¼ÀïijһÏîµÄÄÚÈÝ¡£ ±ÈÈçTOMCAT 1Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ