Is there anyway I can do this:
local randombull = {
"testbrah",
"testbrah2",
}
for k,v in pairs(randombull) do
if (!sql.TableExists(v[k])) then // ! = not
query = "CREATE TABLE "v[k]" ( unique_id varchar(255), count int )"
result = sql.Query(query)
if (sql.TableExists(v[k])) then
Msg("Succes ! table 1 created
")
else
Msg("Somthing went wrong with the metals query !
")
Msg( sql.LastError( result ) .. "
" )
end
end
end
I am about to upload a bunch of data to a sql database, and I wanted to know the easiest way to do it.