日期:2014-05-18 浏览次数:20760 次
CREATE TABLE a ( id INT , NAME VARCHAR(8000) ) INSERT INTO a VALUES ( 1, ' /* declare @p2 int set @p2=5713 exec GetICMaxNum ''''ICSTOCKBill'''',@p2 output select @p2 */ set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ' )
------解决方案--------------------
--不理解你把脚本插入到数据库中做什么? CREATE TABLE a ( id INT , NAME VARCHAR(8000) ) INSERT INTO a VALUES ( 1, ' /* declare @p2 int set @p2=5713 exec GetICMaxNum ''''ICSTOCKBill'''',@p2 output select @p2 */ set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ' ) SELECT * FROM a /* id NAME ----------- ----------------------------- 1 /* declare @p2 int set @p2=5713 exec GetICMaxNum ''ICSTOCKBill'',@p2 output select @p2 */ set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go (1 row(s) affected) */