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

sqlÁªºÏ²éѯÌõ¼þÎÊÌâ

tblT ±í½á¹¹
Fyear int 4
Fmonth int 4
FAA  int  4
¼ÙÉèÊý¾Ý
Fyear          Fmonth      FAA
2009          12          0
2009            8        0
2010          1          0
2010          2          1

´«Èë²ÎÊý ÄêºÍÔ ×öΪÅжÏÌõ¼þ ºÍfyear ,fmonth ¹ØÁªÅжϡ£ ±ÈÈç ´«Èë2010-1
ÎÒÏë°Ñ СÓÚµÈÓÚ2010-1µÄFAAÊý¾Ý¶¼Í³Ò»ÐÞ¸ÄΪ1
զд£¿
ÎÒ֮ǰдµÄÊÇ  update tblT  set FAA='1' where  FYear <=2010 and FMonth <=1
µ«ÊÇ·¢ÏÖÊDz»¶ÔµÄ¡£Çë´ó¼Ò°ïæһÏ£¬Ð»Ð»À²
SQL code:
update tblT
set FAA='1'
where datediff(mm,ltrim(fyear)+ltrim(Fmonth)+'01','201001')>=0


SQL code:
update
tblT
set
FAA='1'
where
datediff(mm,ltrim(fyear)+ltrim(Fmonth)+'01','201001'+'01')>=0


ÒýÓÃ
SQL codeupdate tblTset FAA='1'wheredatediff(mm,ltrim(fyear)+ltrim(Fmonth)+'01','201001')>=0

Ð


Ïà¹ØÎÊ´ð£º

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

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

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 - MS-SQL Server / ÒÉÄÑÎÊÌâ

--drop table #T1
--drop table #T2
create Table #T1(ID int,
QueryID nvarchar(20),
ResultID1 nvarchar(20),
ResultID2 nvarchar(20))
create Table #T2(SortNo int,
QueryID nvarchar(20),
ResultID1 nv ......

SQLÈçºÎÓÅ»¯ÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

½ñÌì×öÁËÒ»¸ö´æ´¢¹ý³Ì   »·¾³ÊÇSQL2000Êý¾Ý¿â  
´óÖÂÈçÏÂ
½¨Á¢ÁÙʱ±í
¶¨ÒåÔ±¹¤Óαê
        Ñ­»·Ô±¹¤£¨ÊôÓÚ1¸ö¹«Ë¾)  
        ......

pl/sql - Oracle / ¿ª·¢

СµÜ£¬×î½üҪתÐÐÈ¥×öoracle¿ª·¢ÁË£¬ÓÉÓÚ´óѧ±Ïҵʱ£¬×ßÁ˸öÍä·£¬ÏÖÔÚºÜСÐÄ£¬ÎÊÏ£¬×öPL/SQLÓÐûÓÐǰ;£¿£¿£¿
µ±È»ÎÒ˵µÄÕâ¸öǰ;ÊÇÖ¸ ÒÔºóÒªÌø²Û£¬Êг¡¶ÔÕâÑùµÄÈ˲ŵÄÐèÇóÁ¿´ó²»´ó£¿£¿

3q ÄÇ¿´À´»¹Ö»ÄÜÏȽӴ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ