Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Databricks show all columns in table

I have a table with a lot of columns… the result is getting truncated and I cannot scroll to the right.

How can I show all columns using SQL?

I have tried:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

%sql SHOW COLUMNS IN 

%sql  DESCRIBE EXTENDED

amongst others.

>Solution :

If you need the column and type, then use DESCRIBE as you mentioned. I think you’re just missing "table" after describe.

%sql
describe table database_name.table_name
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading