ÓÐÒ»¸öList²Ëµ¥£¬Ñ¡Ôñ³öÒªÐ޸ĵÄÑ¡Ï±à¼Ò»Ïµã»÷¡°±£´æ¡±ÒÔºó£¬Ð޸ĵÄÄÚÈݾͻᱣ´æµ½SQLÖС£
Ï£ÍûÓгÌÐò²Î¿¼Ò»Ï¡£Ê¹ÓÃʲô·½·¨¡£
EditGrid¡£
cn.Execute "update mytable set student_name = '" & list "' where id = '5' "
VB code:
cn.Execute "update my ......
sql whereÓï¾äÖÐ
ÓÐʱ¼ä
¶Ôʱ¼äȡģ
where d/mod = 2
ÕâÑùµÄÓï¾ä»áɨÃèÈ«±íÂ𣿣¿£¿
ÒýÓÃ
where d = mod * 2
ÕâÑù»áºÃµã£¿£¿
where d/mod = 2
ÕâÑùµÄÓï¾ä»áɨÃèÈ«±íÂ𣿣¿£¿
ÒýÓÃ
where d/mod = 2
ÕâÑùµÄÓï¾ä»áɨÃèÈ«±íÂ𣿣¿£¿
sql server»á²»» ......
±íA
Ö÷¼ü Ãû×Ö ÄêÁä ×é
OID name age group
1 A 12 &n ......
±í[tb02]ÈçÏÂ:
aId objId remark mTime title
1 11 ÎÞ 2008-11-12 num01
2 2 ÎÞ 2008-11-13 num02
3 5 &n ......
Óиö±íÀïÓиö×Ö¶ÎΪaddtime£¬¾«È·µ½Ã룬¾ÍÊǼìË÷³ö24Сʱ֮ÄÚµÄÐÅÏ¢¡£
datediff(day,addtime,getdate())=0
SQL code:
ABS(datediff(DD,addtime,getdate()))=0
SQL code:
datediff(hh,col,dateadd(dd,1,col))=24
SQL code:
select * from tb where datediff(ss,addtime,getdate())>=24*60*60
²»Ð ......
QryTmp:=TADOQuery.Create(self);
QryTmp.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+extractfilepat(application.ExeName)+'db.mdb;Persist Security Info=False';
QryTmp.Close;
QryTmp.SQL.Clear;
QryTmp.SQL.Add('select ......