01
<%
02
Set
rs = server.CreateObject(
"adodb.recordset"
)
03
sql = "select * from table
04
rs.addnew
05
rs(
"title"
) =
"title"
06
rs(
"content"
) =
"content"
07
rs.update
08
newid = rs(
"id"
)
09
rs.Close
10
Set
rs =
Nothing
11
%>
(鼠標移到代碼上去,在代碼的頂部會出現四個圖標,第一個是查看源代碼,第二個是復制代碼,第三個是打印代碼,第四個是幫助)01
<%
02
Set
rs = server.CreateObject(
"adodb.recordset"
)
03
sql = "select * from table
04
rs.addnew
05
rs(
"title"
) =
"title"
06
rs(
"content"
) =
"content"
07
rs.update
08
rs.movelast
09
newid = rs(
"id"
)
10
rs.Close
11
Set
rs =
Nothing
12
%>
(鼠標移到代碼上去,在代碼的頂部會出現四個圖標,第一個是查看源代碼,第二個是復制代碼,第三個是打印代碼,第四個是幫助)