Jump to content

Database query


Drakath

Recommended Posts

Posted

I get this error: Database query failed: no such column: Drakath

  
local sql = { Query = executeSQLQuery }; 
sql.Query( "INSERT INTO myTable ( name, ID, city ) VALUES ( "..getAccountName(getPlayerAccount(source))..", "..ID..", "..city.." )" ); 

How come it recognizes a value as a column?

s.epicrow.com:22003.png

Posted

are you sure that there is a column with that name (Drakath).

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted
There is no such column. "Drakath" is supposed to be the value and "name" is the column.

add table

executeSQLQuery("CREATE TABLE IF NOT EXISTS myTable (name TEXT, ID TINYTEXT, city TEXT)") 

executeSQLQuery( "INSERT INTO myTable (name,ID,city ) VALUES (?,?,?) ",getAccountName(getPlayerAccount(source)),ID,city) 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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