sqlTxt = ''' select * from table_a where staff_no = ${staff_no} ''' results =self.myDb.query(sqlTxt, vars={'staff_no':staff_no})
rs = results.i.gi_frame.f_locals["names"]
web.db下获取select后返回的column列表
最新推荐文章于 2023-12-08 17:38:20 发布
sqlTxt = ''' select * from table_a where staff_no = ${staff_no} ''' results =self.myDb.query(sqlTxt, vars={'staff_no':staff_no})
rs = results.i.gi_frame.f_locals["names"]