日期:2014-05-19  浏览次数:20443 次

简单的新手问题 高手看一眼 那里有错啊
create   proc   InsertIntoNewsImage
@nimagefalsename   varchar(50),
@nimagetruename   varchar(50)
as
declare   @nid   int
set   @nid   =   select   @@IDENTITY
insert   into   newsImage(nid,nimagefalsename,nimagetruename)   values(@nid,@nimagefalsename,@nimagetruename)

------解决方案--------------------
create proc InsertIntoNewsImage
@nimagefalsename varchar(50),
@nimagetruename varchar(50)
as
declare @nid int
set @nid = @@IDENTITY
insert into newsImage(nid,nimagefalsename,nimagetruename) values(@nid,@nimagefalsename,@nimagetruename)