mysql几种插入数据库方法总结
insert into test value(null,1)
insert into test values(null,2)
insert into test value(null,3),(null,4),(null,5)
insert into test values('',6),('',7)
insert into test set id='',number=8
本文总结了MySQL中多种插入数据的方法,包括使用单条INSERT语句插入一条记录、使用VALUES批量插入多条记录以及SET语法设置字段值进行插入。通过这些方法可以更高效地管理数据库。
mysql几种插入数据库方法总结
insert into test value(null,1)
insert into test values(null,2)
insert into test value(null,3),(null,4),(null,5)
insert into test values('',6),('',7)
insert into test set id='',number=8
2858

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