CodePudding user response:
Only one insertCodePudding user response:
Writing a storage statements, under referencehttps://www.cnblogs.com/phpper/p/7361841.html
CodePudding user response:
Table fields as words can consider to use the program to achieve//table model name for each table defines a model
$arr=[' table 1 ', '2', '2');
[' field 1=$data=https://bbs.csdn.net/topics/& gt; '1', 'field 2=& gt;' value 2];
The foreach ($arr as $val) {
//insert
Model ($val) - & gt; Insert ($data);
}
Can also use native methods assembly SQL statement cycle write
More than never personally realize...