GaBuZoMeu/SQL/PostgreSQL/insert-test.sql
Stephane Bortzmeyer c881cde89c * More documentation
* Database creation scripts
2023-06-09 09:21:21 +02:00

25 lines
1.1 KiB
PL/PgSQL

BEGIN;
INSERT INTO Languages (code, added) VALUES ('pl', '2007-01-24');
INSERT INTO Descriptions (description) VALUES ('Polish');
INSERT INTO Descriptions_languages (description, lang)
SELECT currval('Descriptions_id_seq'), 'pl';
INSERT INTO Languages (code, added) VALUES ('en', '2007-01-24');
INSERT INTO Descriptions (description) VALUES ('English');
INSERT INTO Descriptions_languages (description, lang)
SELECT currval('Descriptions_id_seq'), 'en';
INSERT INTO Languages (code, added) VALUES ('fr', '2007-01-24');
INSERT INTO Descriptions (description) VALUES ('French');
INSERT INTO Descriptions_languages (description, lang)
SELECT currval('Descriptions_id_seq'), 'fr';
INSERT INTO Descriptions (description) VALUES ('Francais');
INSERT INTO Descriptions_languages (description, lang)
SELECT currval('Descriptions_id_seq'), 'fr';
INSERT INTO Languages (code, added) VALUES ('es', '2007-01-24');
INSERT INTO Descriptions (description) VALUES ('Spanish');
INSERT INTO Descriptions_languages (description, lang)
SELECT currval('Descriptions_id_seq'), 'es';
COMMIT;