![]() |
#2
feeless2007-04-20 15:57
|
create proc maxid
@maid int output
as
begin
select top 1 @maid=id from info order by id desc
end
go
前台调用:
Dim adoComm
Set adoComm = CreateObject("ADODB.Command")
With adoComm
.ActiveConnection =Conn
.CommandType = 4
.CommandText = "maxid"
.Execute
response.write (.Parameters.Item("@maid").ValueEnd)
With
Set adoComm = Nothing
这个那有错??我看就十分的对嘛,嘿嘿,不过肯定是错了,谁帮帮一下,谢了