anirban2k2001
Programmer
Hi all,
I have used sqlite as backend to fetch some data and want to display the fetched data by simply doing a puts. Unfortunately, my code is not displaying any data. Where am I going wrong? My code is:
# Loading the sqlite database
load /usr/lib/tclsqlite-2.8.15.so Sqlite
sqlite db1 /root/cesc_simputer.db
db1 eval {select * from mri where con_no = '$cmd'} values {
parray values
set cn [values(con_no)]
puts $cn
puts ""
}
Any early help will be appreciated.
Thanks in advance.
Anirban Sarkar
I have used sqlite as backend to fetch some data and want to display the fetched data by simply doing a puts. Unfortunately, my code is not displaying any data. Where am I going wrong? My code is:
# Loading the sqlite database
load /usr/lib/tclsqlite-2.8.15.so Sqlite
sqlite db1 /root/cesc_simputer.db
db1 eval {select * from mri where con_no = '$cmd'} values {
parray values
set cn [values(con_no)]
puts $cn
puts ""
}
Any early help will be appreciated.
Thanks in advance.
Anirban Sarkar