找出內部或外部資料表
你知道內部綱要(schema)只能包含內部資料表,但你想持續完善所有資料表的文件。基於這個目標,你決定檢視 public_intro_redshift 綱要中所有資料表的表格類型。
本練習屬於課程
Redshift 入門
練習說明
- 從所有資料表的系統檢視中選取資料表名稱與類型。
- 僅篩選
public_intro_redshift。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
-- Query the table name and type
SELECT ___,
___
-- Use the proper system view to via all tables
FROM ___
-- Make sure to filter to the proper schema
WHERE schema_name = '___';