On Tuesday, July 29, 2014 9:09:23 PM UTC+2, Casey wrote:
> How would I get all column names from a table with TCL code?
>
>
>
> From the examples that I have found, I need to specifically specify the names.
A more general method, which works for other supported databases also, would be to use tdbc:
package require tdbc::sqlite3
tdbc::sqlite3::connection create db {}
db allrows {create table test(col1, col2, col3)}
foreach {c i} [db columns test] {puts $c}
Harm