Skip to content

Commit 645b47c

Browse files
Stefanos GeorgakisStefanos Georgakis
Stefanos Georgakis
authored and
Stefanos Georgakis
committed
[SQL-496] - Get the description of a table in SQL
1 parent cc2d819 commit 645b47c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

Diff for: sql-queries-10/get-description-of-a-table/mssql.sql

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SELECT table_catalog, table_schema, table_name, column_name,
2+
column_default, is_nullable, data_type
3+
FROM information_schema.columns
4+
WHERE table_name = 'Course';

Diff for: sql-queries-10/get-description-of-a-table/mysql.sql

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SELECT table_schema, table_name, column_name, column_default,
2+
is_nullable, data_type, column_type, privileges
3+
FROM information_schema.columns
4+
WHERE table_name = 'Course';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SELECT table_catalog, table_schema, table_name,
2+
column_name, column_default, is_nullable
3+
data_type, is_generated, is_updatable
4+
FROM information_schema.columns
5+
WHERE table_name = 'course';

0 commit comments

Comments
 (0)