3 ms·
The SQLite extension for Tcl offers something similar: db1 eval {INSERT INTO t1 VALUES(5,$bigstring)} https://sqlite.org/tclsqlite.html#the_eval_method h
by fweimer 1y ago
The SQLite extension for Tcl offers something similar:
db1 eval {INSERT INTO t1 VALUES(5,$bigstring)}
https://sqlite.org/tclsqlite.html#the_eval_method https://sqlite.org/tclsqlite.html#the_eval_method
- wizzwizz4 1y agoAs I understand, that's less powerful, because you can do: t"INSERT INTO mytable VALUES ({s}, {s[::-1]})" but you can't do: mydb eval {INSERT INTO mytable VALUES ($s, [string reverse $s])} Instead, you have to write: set t [string reverse $s] mydb eval {INSERT INTO mytable VALUES ($s, $t)} There's no reason you couldn't have such power in Tcl, though: it's just that the authors of SQLite didn't.