SA-MP Forums Archive
query difference - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: query difference (/showthread.php?tid=405278)



query difference - trow - 06.01.2013

hey, everyone,

I have one little question. Is there a difference between querys?
t.y
1st query:
Код:
mysql_query("UPDATE `players` SET `Money` = 15, `Xp`= 25000");
2st query:
Код:
mysql_query("UPDATE `players` SET `Money` = 15");
mysql_query("UPDATE `players` SET `Xp` = 25000");



Re: query difference - Luis- - 06.01.2013

Well, not really, but the first one is better to use seeing as it's only the one function. It is up to you though mate. Personally i'd use the first one.