1、oracle下:select table_name from all_tables;
2、MySQL下:select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';
3、sql server下:select name from sys.tables gooracle下:select table_name from all_tables;
2、MySQL下:select table_name from information_schema.tables where table_schema='csdb' and table_type='base table';
3、sql server下:select name from sys.tables go
用sql获取数据库中所有的表名的方法
最新推荐文章于 2025-11-09 13:23:51 发布
本文提供了在Oracle、MySQL和SQL Server三种不同的数据库环境下查询所有表名称的方法。针对每种数据库的特点,分别给出了具体的SQL语句。
1147





