[求助]帮忙看一下错在哪里?
SET QUOTED_IDENTIFIER OFF GO
SET ANSI_NULLS OFF
GO
ALTER PROCEDURE InserArticle
@title nvarchar(50),
@title_sec nvarchar(50)
AS
exec('INSERT INTO '+@tableInfoName+'
(Title, Title_Sec)
VALUES ('+char(39)+@title+char(39)+','+char(39)+@title_sec+char(39)+')')
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
提示错误: 'char' 附近有语法错误。
请各位给看下
该怎么写?
谢谢了!
[[italic] 本帖最后由 wklhdt 于 2007-12-26 17:40 编辑 [/italic]]