Jump to content

SQL Tables.


N3xT

Recommended Posts

Posted

Hey, is it possible to add this feature, if the SQL table exists or not?

Like this.

executeSQLQuery("IS TABLE EXISTS players" )

Thanks!

 

 

Posted
Yeah, This would be amazing and useful for sure
 

Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

  • MTA Team
Posted

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

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...