|
|
|
|
Çѽº / 2001-02-15 / ¿ÀÀü 5:16:31 / 203.228.58.137
Á¶È¸¼ö : 121
|
[Áú¹®] ÇÏ·ç°¡ Áö³ ÀÚ·á´Â Áö¿ï·Á°í Çϴµ¥ À߾ȵų׿ä |
ÇÏ·ç°¡ Áö³ ÀÚ·á´Â Áö¿ï·Á°í Çϴµ¥ À߾ȵų׿ä
Á» µµ¿ÍÁÖ¼¼¿ä^^俵ÀÌ´Ô!
¿Ö ¾ÈµÅÁã??????
===============================================
Set db = Server.CreateObject("ADODB.Connection")
db.Open("DSN=ddd;uid=sa;PWD=;")
ydday = datediff(d,1,getdate())
'ydday = now()-1
SQL = "SELECT * FROM mytable where idate like ydday"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open SQL,Db,1
If Not Rs.Eof Then
Do Until Rs.Eof
DelSellSql = "delete mytable where number = " & number
Db.Execute DelSellSql
Rs.MoveNext
Loop
End If
Rs.Close
Set Rs = Nothing
============================================ |
|
|