I tried the answers in this very similar question: List all columns wtih datatype in specific table in Snowflake and they work in the Snowflake WebUI but not in Teradata SQL Assistant.
But even using SHOW COLUMNS IN TABLE MYSCHEMA.MYTABLE; doesn't give me exactly what I need. I want the query to return information like this:
Columns Data Type
REGION_ID NUMBER(38,0)
STORE_NAME VARCHAR(20)
VALID_NAME VARCHAR(1)
The data_type column from SHOW COLUMNS IN TABLE MYSCHEMA.MYTABLE; doesn't look like the above grid which is from the Snowflake WebUI ("View Details" command by right clicking the table name in left hand side of the "Find database objects" section).
The view from SHOW COLUMNS... looks like this:
data_type
{"type":"FIXED","precision":38,"scale":0,"nullable":true}
{"type":"TEXT","length":20,"byteLength":80,"nullable":true,"fixed":false}
{"type":"TEXT","length":1,"byteLength":4,"nullable":true,"fixed":false}
Yes, similar but I'm looking for something equivalent to the grid above or the Teradata SHOW TABLE command.