📜  sql 所有列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:54.353000             🧑  作者: Mango

代码示例3
-- MySQL
SELECT * 
FROM INFORMATION_SCHEMA.COLUMNS;

-- SQL Server (possible solution)
SELECT * 
FROM SYS.COLUMNS;

-- Oracle
SELECT * 
FROM ALL_TAB_COLS; -- (If you only want user-defined columns)
-- ALL_TAB_COLS : only user-defined columns
-- ALL_TAB_COLUMNS : both user-defined AND system columns