且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用一个Mysql Insert语句在多个表中插入数据

更新时间:2022-04-26 04:44:11

使用单个SQL语句是不可能的.但是,为什么不编写一个存储过程来做到这一点呢?然后,您可以使用一个语句来调用存储过程,这同样好.
It''s not possible with a single SQL statement. But why not just write a stored procedure to do it? Then you have the ability to just call the stored procedure with a single statement, which is just as good .