Home > database >  Brother knows how to insert a data in the table to the n
Brother knows how to insert a data in the table to the n

Time:09-21

Brother knows how to insert a data in the table to the n

CodePudding user response:

Only one insert

CodePudding user response:

Writing a storage statements, under reference
https://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...
  • Related