Re: [sqlite] Variable Declaration

2019-01-18 Thread Stephen Chrzanowski
I know about the bindings. I don't know about all languages supporting it. On Fri, Jan 18, 2019 at 11:26 PM Simon Slavin wrote: > On 19 Jan 2019, at 3:57am, Stephen Chrzanowski > wrote: > > > I was going to have three variable set with > > three different strings I could just copy/paste to gen

Re: [sqlite] Variable Declaration

2019-01-18 Thread Simon Slavin
On 19 Jan 2019, at 3:57am, Stephen Chrzanowski wrote: > I was going to have three variable set with > three different strings I could just copy/paste to generate that > comparative list. You know SQLite does binding, right ? You don't have to construct your command like command$ = "INSERT INT

Re: [sqlite] Variable Declaration

2019-01-18 Thread Stephen Chrzanowski
More simple than that. In MSSQL there's the DECLARE and SET commands ( https://docs.microsoft.com/en-us/sql/t-sql/language-elements/variables-transact-sql?view=sql-server-2017 ) I was thinking that while I'm going through my list of "To make this, you need that and the other thing", I was going t

Re: [sqlite] Variable Declaration

2019-01-18 Thread Keith Medcalf
SQLite3 does have variables. You set them by binding values to an SQL statement, and retrieve them by retrieving column values resulting from the execution of an SQL Statement. For example: sqlite3_prepare('select var1, var2 from table1 where val3=?;') You bind a value to the val3 variable

[sqlite] Variable Declaration

2019-01-18 Thread Stephen Chrzanowski
Tonight, I wanted to write up a small database to keep tabs on certain things I've done in a game, and show me new tasks I can do based on what I've completed. I have a full list of items, and what pairs of items I need to poses to get the next thing, but, getting the data into the DB is tedious.

[sqlite] Solaris Studio 12.6 compilation failure

2019-01-18 Thread Igor Korot
"sqlite3.c", line 29907: warning: conversion to double is out of range "sqlite3.c", line 52491: warning: statement not reached Is it something to be worry? Thank you. ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists

[sqlite] sqlite3_interrupt

2019-01-18 Thread Michele Pradella
Hi all, I was looking to the sqlite3_interrupt to make my application closing faster without waiting for long standing DB operation. I read in the documentation that should not be a problem to call it during insert update or delete: if transaction is running is automatically rolled back. Do you