简易生成表数据insert语句

来源:互联网 发布:周群上海数据港 编辑:程序博客网 时间:2024/06/08 05:13

set nocount on

select 'insert into test(id, name, description) values(''' + convert(varchar(10), id) + ''', ''' + name + ''',''' +description + ''')' + char(13) + char(10)

from test --可以加过滤条件

set nocount off

0 0