if field exist sqllite
#2

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:
pawn Код:
new DBResult:result = db_query(info, "SELECT `email` FROM `player`;");
if (result)
{
    // field exist
}
db_free_result(result);
Reply


Messages In This Thread
if field exist sqllite - by ratxrat - 22.05.2016, 04:46
Re: if field exist sqllite - by Gammix - 22.05.2016, 06:11
Re: if field exist sqllite - by ratxrat - 22.05.2016, 07:14
Re: if field exist sqllite - by Gammix - 22.05.2016, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)