$data = GetFile("c:\temp\fruit.csv") $status = sqlite("open","c:\temp\test.db3") $status = sqlite("import",$data,"table=fruit delim=,") |
$database = "$_AppData\macros\TestExample1.db3" If not(FileExists($database)) $data = sqlite("create",$database) EndIf $data = sqlite("open",$database) $data = sqlite("sql","create table if not exists test1 (field1 text)") $data = sqlite("sql","delete from test1") # first insert without a transaction $x = 0 Timer status=on while $x < 100 $data = sqlite("sql","insert into test1 values('" + "$x" + "')") $x = $x + 1 endwhile timer status=off # now with a transaction $x = 0 Timer status=on $data = sqlite("sql","begin") while $x < 100 $data = sqlite("sql","insert into test1 values('" + "$x" + "')") $x = $x + 1 endwhile $data = sqlite("sql","commit") timer status=off |
$data = sqlite("sql","attach '$_CurrentDataPath\sqlite.db3' as GSAKdbf") |
$status = Sqlite("sql","drop table if exists gsak_mem.DbCodes") $status = Sqlite("sql","create table gsak_mem.DbCodes as select code from caches where rowid in (select * from gridtemp)") |