Tcl/Tk -- ODBC

来源:互联网 发布:上师大数理 知乎 编辑:程序博客网 时间:2024/05/16 07:22
# import odbc package,# the package not include in the tcl/tk # need install extrapackage require tclodbc# connect to a odbc set dbsrc omsdataset dbusr saset dbpwd 1234database db $dbsrc $dbusr $dbpwd # execute sql  and get resultset sql "select * from omsTrade_File"set rec [db $sql]# close connectiondb disconnect
0 0