标签:
<1>select ‘insert into table_name (name,code) values (‘‘‘+name+‘‘‘,‘‘‘+code+‘‘‘);‘ sql_str from canton;
<2>对于id为int类型的处理
select ‘insert into table_name (id,code) values (‘+cast(id as varchar)+‘,‘‘‘+code+‘‘‘);‘ sql_str from canton;
<3>对于字段较多的处理,参见附件存储过程[table_insert]
<4>数据库字段名存在关键字,要用[column]代替
标签:
原文地址:http://www.cnblogs.com/meisp/p/5491226.html