Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQLite = dbConnect("sqlite", "sqlite.db")
- MySQL = dbConnect("mysql", "localhost", "root")
- SQLiteQuery = dbQuery(SQLite, "BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS 'Test' (Kolumna_1 TEXT, Kolumna_2 INTEGER, Kolumna_3 TEXT);")
- MySQLQuery = dbQuery(MySQL, "CREATE TABLE IF NOT EXISTS Test (Kolumna_1 TEXT, Kolumna_2 INT(2), Kolumna_3 TEXT);")
- function Insert_Record(Text, ID, Text_2)
- local QueryHandle = dbQuery(SQLite, "INSERT INTO 'Test' VALUES('?, ?, ?');", Text, ID, Text_2);
- end
- --COMMIT; SELECT Kolumna_1 FROM 'Test';")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement