摘要:我们在数据库开发过程中, 常需要把一个表中的数据变成insert语句,便于完成1,数据初始化2,数据的导入/导出下面的该存储过程(stored proc) usp_GenInsertScript,用法如下:exec usp_GenInsertScript 'your_table_name'例如:create table T1(idx int identity(1,1), userName nvarchar(50))insert into T1(userName) values('ZhangZhiRong')insert into T1(userName) val
阅读全文
posted @ 2012-02-20 16:09
浙公网安备 33010602011771号