sql = "SELECT * FROM orders ORDER BY OID DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn, 1,3
if RS.Recordcount=0 then
OID = 0
else
OID = rs("OID")
end if
OID = OID + 1
sql = "insert into orders (oid,name) " & _
"values ("&oid","&name&")"
ถูกหรือป่าวครับ
Tag : - - - -
Date :
28 ก.พ. 2548 14:48:37
By :
pkoaloy
View :
2758
Reply :
3
No. 1
Guest
แก้ตรงที่
SELECT TOP 1 FROM orders ORDER BY OID DESC