insert into tablename(id,name)
select 1,'lili'
union all select 2,'lucy'
本文介绍了一个简单的SQL插入语句示例,演示了如何使用UNION ALL来组合多条INSERT语句,这对于批量插入数据非常有用。
insert into tablename(id,name)
select 1,'lili'
union all select 2,'lucy'
38万+

被折叠的 条评论
为什么被折叠?