我想从当前数据库中获取所有表及其列的列表,例如:
table1
- column1
- column2
- column3
table2
- column1
- column2
我试过:
SELECT * FROM sqlite_master WHERE type=? ORDER BY name;
(?
是'table'
)
但我只得到表格列表,没有列:(
如果我删除 WHERE 子句,我会收到此错误:
SQLSTATE[HY000]: General error: 25 bind or column index out of range
如果我换成table
我column
什么都得不到...
请帮忙?