diff --git a/sql-queries-10/get-description-of-a-table/mssql.sql b/sql-queries-10/get-description-of-a-table/mssql.sql new file mode 100644 index 00000000..755adad9 --- /dev/null +++ b/sql-queries-10/get-description-of-a-table/mssql.sql @@ -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'; diff --git a/sql-queries-10/get-description-of-a-table/mysql.sql b/sql-queries-10/get-description-of-a-table/mysql.sql new file mode 100644 index 00000000..3597607a --- /dev/null +++ b/sql-queries-10/get-description-of-a-table/mysql.sql @@ -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'; diff --git a/sql-queries-10/get-description-of-a-table/postgresql.sql b/sql-queries-10/get-description-of-a-table/postgresql.sql new file mode 100644 index 00000000..23ff6510 --- /dev/null +++ b/sql-queries-10/get-description-of-a-table/postgresql.sql @@ -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';