Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying sqlite backend data

Status
Not open for further replies.

anirban2k2001

Programmer
Aug 25, 2003
27
IN
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top