csd214
08-20-2004, 10:43 AM
I have tried to study the SQLite plugin (from previous experience I know the strength of SQL queries). The first step was to create some tables (from text files). By means of the plug-in help file, I succeeded with an user defined function easy to use. Then I wanted to display a specific row, let's say number 215. It’s like “going to Sweden” when you “live in Norway” – then you have to go eastwards.
I started with a SQL Query "select * from "..cTable; (selected all rows!). Continued with SQLite.Compile(), then SQLite.Query() with CallBack Function with tbRowDataArray where I tested for nRow == nPrm. OK, I came to Sweden, but afterwards I discovered that I had went west, passed Rankin Inlet on my way round the world, until I arrived in Sweden.
This is more efficient:
sql="select * from "..cTable.." where rowid = "..nPrm;
tblRec = SQLite.QueryToTable(db, sql);
IN tblRec I HAVE ALL WHAT I NEED!
When I started with AMS, “tables” was an important issue. I read the docs, and tried again. Read the docs, and tried again. Not until I had played through Coreys CD#3 “Tables Made Easy”, the idea was clear.
Why these words? To tell that I miss the Plug-In CD with “SQLite Databases Made Easy”. I still miss my early morning lessons with “Corey on my ear”, but this forum supplies the want.
I started with a SQL Query "select * from "..cTable; (selected all rows!). Continued with SQLite.Compile(), then SQLite.Query() with CallBack Function with tbRowDataArray where I tested for nRow == nPrm. OK, I came to Sweden, but afterwards I discovered that I had went west, passed Rankin Inlet on my way round the world, until I arrived in Sweden.
This is more efficient:
sql="select * from "..cTable.." where rowid = "..nPrm;
tblRec = SQLite.QueryToTable(db, sql);
IN tblRec I HAVE ALL WHAT I NEED!
When I started with AMS, “tables” was an important issue. I read the docs, and tried again. Read the docs, and tried again. Not until I had played through Coreys CD#3 “Tables Made Easy”, the idea was clear.
Why these words? To tell that I miss the Plug-In CD with “SQLite Databases Made Easy”. I still miss my early morning lessons with “Corey on my ear”, but this forum supplies the want.