Jump to content

I need a syntax


Trium918

Recommended Posts

as I correctly understood you need to insert data in two tables or not insert nothing.

Probably in this case you can use transaction.

the sequence is following:

  • begin transaction tr_name
  • insert into table1...
  • insert into table2...
  • commit transaction tr_name

 

you should check the syntax of transactions in MySQL

 

 

Link to comment
https://forums.phpfreaks.com/topic/46962-i-need-a-syntax/#findComment-229580
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.