cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Save output of show table extended to table?

dplaut
New Contributor II

I want to save the output of 

    show table extended in catalogName like 'mysearchtext*';

to a table.

How do I do that?

2 REPLIES 2

dplaut
New Contributor II

I can't get this to work. I get the error:
[PARSE_SYNTAX_ERROR] Syntax error at or near 'SHOW'.line 2, pos 0

insert into my_target_table (database, tablename, istemporary, information)
SHOW TABLE EXTENDED LIKE 'mytable';

 

dplaut
New Contributor II

I would not have expected that to work as it violates rules I know about SQL and the purpose of the semicolon. And it does not work.

[PARSE_SYNTAX_ERROR] Syntax error at or near end of input.line 1, pos 75