Example Code:
<%
SQLDelete = "Delete from aTable where aColumm='___' "
conn.Execute SQLDelete
%>
-----------------------------------------
<%
Set rs= conn.Execute ("select * from aTable " )
if not rs.eof then
id=rs("id")
FT=rs("Ftime")
DD=DateDiff("m",FT,now)
if DD>1 then
SQLDelete = "Delete from aTabl1 where id1='"&id&"'"
conn.Execute SQLDelete
end if
end if
%>
Do not use [ Delete * from ] no *
<%
'----- to delete all datas from tb1 ----- no need " * "
SQLDelete = "Delete from tb1 "
conn.Execute SQLDelete
%>
注意:是删除所有符合的数据列
可能是多于一笔....
所以不用使用:下一个(next)或计数(count) |