Skip to content

Commit 34f1371

Browse files
Damien EscaichDamien Escaich
Damien Escaich
authored and
Damien Escaich
committed
Add show query
1 parent 29fc384 commit 34f1371

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,16 @@ select
9595
from my_database.my_table
9696
group by 1
9797
order by 2 desc;
98-
```
98+
```
99+
100+
## Show create statements of all views and tables involved in a query
101+
102+
This will returns also the DDL of the tables which are referenced in a foreign key
103+
104+
It is especially usefull to retrieve objects used in imbricated views.
105+
106+
```sql
107+
show select * from my_database.my_table;
108+
```
109+
110+
Will returns one result set per create statement.

0 commit comments

Comments
 (0)