What is the different between `Users` and Users MySQL
#1

Код:
Hello, I'v a question what is the different between :
        format(query, sizeof(query), "UPDATE `Users` SET Money = %d WHERE Name= '%s'",money,pName(playerid));
        mysql_query(query);
        
        format(query, sizeof(query), "UPDATE Users SET Admin = %d WHERE Name= '%s'",pInfo[playerid][Admin],pName(playerid));
        mysql_query(query);
Reply
#2

There is no difference - both codes will do the same thing.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
The official answer is that doing `Users` will work even if the word "Users" one day becomes a MySQL keyword (like "SELECT"), whereas without the quotes won't. For example:

Код:
SELECT * FROM `Insert`
Works.

Код:
SELECT * FROM INSERT
Fails.
Great response. Learn something everyday.
Reply
#4

Quote:
Originally Posted by BittleRyan
Посмотреть сообщение
Great response. Learn something everyday.
Agree (Y) .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)