比如类似要用一个循环一次性插入多条数据。 或者类似这样的数据,需要一次性全部插入数据库的时候,
dict={"t1":1,"t2":2,"t3":3,.....}
伪代码:
for item in dict: insert(item.key,item.value)
怎么样组织代码性能会比较好一些?
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
Insert data once and often I will spell the SQL statementYou can also refer to this
Insert data once and often I will spell the SQL statement
You can also refer to this