这是可能的吗?
我需要得到所选/连接的数据库中所有表名的列表。
我一直在尝试sql关键字EXPLAIN, DESCRIBE, SHOW TABLES等,但只是从Azure得到错误:
Could not find stored procedure 'SHOW'.
有谁知道我想做的事有可能吗? 尝试:
$q = $this->db->query('
SHOW TABLES
');
$query = $q->result_array();
对INFORMATION_SCHEMA执行SELECT。如果还需要列,则使用INFORMATION_SCHEMA。列
我能够找到这个查询。
select * from sys.tables;
(基于这里的查询)