11.09.2017, 22:20
Quote:
Use tquery for UPDATE operations and pquery for SELECT operations.
Pquery would work here but tquery would be better in this case On your last reply: No, he means that you have to add this line after your code Код:
mysql_tquery(sqlConnection, query); |
Queries sent with tquery are processed in the order they are sent while queries sent with pquery may not necessarily be. For tquery, imagine one pipe that the queries are put into. First in is first out. For pquery there are multiple pipes (this is where the poolsize parameter comes in) and the query is put into the pipe that is least full.
So if you have two select statements that you want to execute in order then you use tquery. Similarly, if you have multiple independent updates then you can use pquery here instead.