antares icon indicating copy to clipboard operation
antares copied to clipboard

Binding value in SQLite

Open Yari27 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Can't run SQL query width binding values.

Describe the solution you'd like Open dialog window to provide binding value.

Additional context https://www.sqlite.org/c3ref/bind_blob.html https://www.databasestar.com/sql-bind-variables/

Yari27 avatar Jul 17 '24 05:07 Yari27

For MySQL backend, it works to put 2 separate lines in the query editor:

set @id1 = 12345;
select * from table1 where idcolumn = @id1;

Have you tried this for SQLite?

It's true that the ? placeholder syntax does not work in Antares + MySQL. Since those represent ordinal positions, it would likely be necessary to count the unquoted ? and prompt in the dialog window for one value for each. Matching up corresponding data types might be an additional complication.

bart-schaefer avatar Sep 18 '24 21:09 bart-schaefer