Hi . I can’t figure out how to check for an existing table in my database with sqlite/lua .
this is what i tried :
local checkTable = [[SELECT name FROM sqlite\_master WHERE type = "table"]]
print( db:exec( checkTable ) )
--delete table
local tablekill = [[DROP TABLE test]]
db:exec( tablekill )
local checkTable = [[SELECT name FROM sqlite\_master WHERE type = "table"]]
print( db:exec( checkTable ) )
any ideas ? thank you in advance .
koji
[import]uid: 7165 topic_id: 2018 reply_id: 302018[/import]