AllLabs
This commit is contained in:
parent
86094e3d5a
commit
635dd2fd31
@ -16,6 +16,7 @@ CREATE TABLE Book (
|
|||||||
GenreID INTEGER,
|
GenreID INTEGER,
|
||||||
Title varchar(200) NOT NULL,
|
Title varchar(200) NOT NULL,
|
||||||
Author varchar(200) NOT NULL,
|
Author varchar(200) NOT NULL,
|
||||||
|
|
||||||
FOREIGN KEY (GenreID) REFERENCES Genre (GenreID)
|
FOREIGN KEY (GenreID) REFERENCES Genre (GenreID)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -41,7 +42,7 @@ COPY (SELECT table_to_xml('Book', true, false, '')) to 'E:\MiAKD\Lab 5-6\book.xm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Индексы (6 lab) */
|
/* === Индексы (6 lab) === */
|
||||||
|
|
||||||
CREATE INDEX index_g
|
CREATE INDEX index_g
|
||||||
ON Genre (GenreID)
|
ON Genre (GenreID)
|
||||||
|
Loading…
Reference in New Issue
Block a user