I am looking for a programmatic way to get the Snowflake table schema, is there a way for that?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With