Bigquery query to find the column names of a table

前端 未结 6 802
误落风尘
误落风尘 2021-01-17 08:59

I need a query to find column names of a table (table metadata) in Bigquery, like the following query in SQL:

SELECT column_name,data_type,data_length,data_p         


        
6条回答
  •  清酒与你
    2021-01-17 09:29

    For newbies like me, the above is of the following syntax:

    select * from project_name.dataset_name.INFORMATION_SCHEMA.COLUMNS where table_catalog=project_name and table_schema=dataset_name and table_name=table_name
    

提交回复
热议问题