N3xT Posted August 19, 2018 Share Posted August 19, 2018 Hey, is it possible to add this feature, if the SQL table exists or not? Like this. executeSQLQuery("IS TABLE EXISTS players" ) Thanks! Link to comment
Master_MTA Posted August 19, 2018 Share Posted August 19, 2018 Yeah, This would be amazing and useful for sure Link to comment
qaisjp Posted August 20, 2018 Share Posted August 20, 2018 You can do this: local rows = executeSQLQuery("SELECT name FROM sqlite_master WHERE type='table' AND name='players'") if #rows == 1 then print("Exists") else print("Does not exist") end 2 Link to comment
Recommended Posts