GaBuZoMeu/SQL/PostgreSQL/insert-test.sql

25 lines
1.1 KiB
MySQL
Raw Normal View History

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;