Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sql-queries-10/get-description-of-a-table/mssql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT table_catalog, table_schema, table_name, column_name,
column_default, is_nullable, data_type
FROM information_schema.columns
WHERE table_name = 'Course';
4 changes: 4 additions & 0 deletions sql-queries-10/get-description-of-a-table/mysql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT table_schema, table_name, column_name, column_default,
is_nullable, data_type, column_type, privileges
FROM information_schema.columns
WHERE table_name = 'Course';
5 changes: 5 additions & 0 deletions sql-queries-10/get-description-of-a-table/postgresql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SELECT table_catalog, table_schema, table_name,
column_name, column_default, is_nullable
data_type, is_generated, is_updatable
FROM information_schema.columns
WHERE table_name = 'course';