• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Saving variables into multiple tables
#7
You can enable mysql option, MULTI_STATEMENTS, (mysql_set_option, toggling the mentioned option (true)) and have multiple MySql queries executed in a single mysql query native.

For example

Code:
INSERT INTO `something`...; INSERT INTO `something else`...;
Notice the semicolon

Sorry for the bad example, I don't have a PC at the moment so I can't really write much of an example but I found this (example is using primary keys - you should consider using foreign keys instead):
https://stackoverflow.com/questions/1047...involved-t
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
RE: Saving variables into multiple tables - by Pinch - 2020-12-15, 03:41 PM

Forum Jump: