Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List all columns wtih datatype in specific table in Snowflake

I am looking for a programmatic way to get the Snowflake table schema, is there a way for that?

like image 503
Vishrant Avatar asked Jan 22 '26 21:01

Vishrant


1 Answers

You can use a SHOW command to list table columns e.g.

SHOW COLUMNS IN TABLE MYSCHEMA.MYTABLE;

Note that SHOW commands have the advantage that they do not require a running warehouse to execute, so are zero cost queries.

like image 134
Nathan Griffiths Avatar answered Jan 25 '26 15:01

Nathan Griffiths



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!