Skip to content

Commit 602e694

Browse files
committed
Adjusted all files
1 parent cfff67e commit 602e694

File tree

4 files changed

+26
-31
lines changed

4 files changed

+26
-31
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SELECT
2+
TABLE_NAME,
3+
INDEX_NAME,
4+
COLUMN_NAME,
5+
NON_UNIQUE,
6+
INDEX_TYPE
7+
FROM
8+
information_schema.STATISTICS
9+
WHERE
10+
TABLE_SCHEMA = 'University'
11+
ORDER BY
12+
TABLE_NAME,
13+
INDEX_NAME,
14+
SEQ_IN_INDEX;

sql-queries-10/generate-all-indexes-in-database/implementation-in-mysql_original.sql

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,6 @@ FROM
66
information_schema.STATISTICS
77
WHERE
88
TABLE_SCHEMA = 'University'
9-
ORDER BY
10-
TABLE_NAME,
11-
INDEX_NAME,
12-
SEQ_IN_INDEX;
13-
14-
15-
SELECT
16-
TABLE_NAME,
17-
INDEX_NAME,
18-
COLUMN_NAME,
19-
NON_UNIQUE,
20-
INDEX_TYPE
21-
FROM
22-
information_schema.STATISTICS
23-
WHERE
24-
TABLE_SCHEMA = 'University'
259
ORDER BY
2610
TABLE_NAME,
2711
INDEX_NAME,

sql-queries-10/generate-all-indexes-in-database/implementation-in-postgres.sql renamed to sql-queries-10/generate-all-indexes-in-database/implementation-in-postgres_extended.sql

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
SELECT
2-
schemaname,
3-
tablename,
4-
indexname,
5-
indexdef
6-
FROM
7-
pg_indexes
8-
WHERE
9-
schemaname = 'public'
10-
ORDER BY
11-
tablename,
12-
indexname;
13-
14-
15-
161
SELECT
172
t.relname AS table_name,
183
i.relname AS index_name,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SELECT
2+
schemaname,
3+
tablename,
4+
indexname,
5+
indexdef
6+
FROM
7+
pg_indexes
8+
WHERE
9+
schemaname = 'public'
10+
ORDER BY
11+
tablename,
12+
indexname;

0 commit comments

Comments
 (0)