mysql自动生成sql语句

update语句
select concat('update table_temp set url=''',url,''' where id=''',id,''';') from table_temp;

insert语句
select concat('insert into table_temp (id,url) values (',id,',''',url,''');') from table_temp;

猜你喜欢

转载自blog.csdn.net/zzchances/article/details/107351927