22.05.2016, 06:11
Do you create fields/columns dynamically ?
If no, then there is no need for checks since you make the SQL table only once.
If yes, just perform a simple query including the field and check if there is result:
If no, then there is no need for checks since you make the SQL table only once.
If yes, just perform a simple query including the field and check if there is result:
pawn Код:
new DBResult:result = db_query(info, "SELECT `email` FROM `player`;");
if (result)
{
// field exist
}
db_free_result(result);