web.py 0.3 新手指南 - db.select 查詢

問題: 怎樣執行數據庫查詢?web 解決方案: 若是是0.3版本, 鏈接部分大體以下:sql db = web.database(dbn='postgres', db='mydata', user='dbuser', pw='') 當獲取數據庫鏈接後, 能夠這樣執行查詢數據庫:數據庫 # Select all entries from table 'mytable' entries = db.se
相關文章
相關標籤/搜索