Advertisement
Shiny_

Untitled

Jun 27th, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. SQLite  = dbConnect("sqlite", "sqlite.db")
  2. MySQL   = dbConnect("mysql", "localhost", "root")
  3.  
  4. SQLiteQuery = dbQuery(SQLite, "BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS 'Test' (Kolumna_1 TEXT, Kolumna_2 INTEGER, Kolumna_3 TEXT);")
  5. MySQLQuery  = dbQuery(MySQL, "CREATE TABLE IF NOT EXISTS Test (Kolumna_1 TEXT, Kolumna_2 INT(2), Kolumna_3 TEXT);")
  6.  
  7. function Insert_Record(Text, ID, Text_2)
  8.     local QueryHandle = dbQuery(SQLite, "INSERT INTO 'Test' VALUES('?, ?, ?');", Text, ID, Text_2);
  9. end
  10.     --COMMIT; SELECT Kolumna_1 FROM 'Test';")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement