Talk:Sql

From NSB App Studio
Revision as of 16:17, 3 July 2013 by James (talk | contribs) (Answering a question on the sample.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Help With Example

sqlList=[]
sqlList[0]=["Drop Table customerData;",,skipError]
sqlList[1]=["Create Table customerData('name', 'age', 'sales', PRIMARY KEY('name') );"]
Sql DB, sqlList

the code don't work skipError and DB are not defined

anyone know the correct code?

The DB parameter is the return value of SqlOpenDatabase as referenced in the page. The sqlList parameter is under-documented, and I'm going to fix that on the page. In this particular case, skipError is a function that is called if an error occurs. You can see the complete definition in Using_SQLite#Complete_Sample. --James (talk) 12:17, 3 July 2013 (EDT)