From 9c2f530289ea371a5510b83e8632b71ff7c2f10a Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Tue, 30 Jun 2015 10:07:04 +0200 Subject: [PATCH] INSERT being corrected --- P/Sda1/rdbms2catalog/Schema/schema.sql | 14 +++++++------- P/Sda1/rdbms2catalogJpa/Schema/schema.sql | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/P/Sda1/rdbms2catalog/Schema/schema.sql b/P/Sda1/rdbms2catalog/Schema/schema.sql index f2dd345da..be699fb39 100644 --- a/P/Sda1/rdbms2catalog/Schema/schema.sql +++ b/P/Sda1/rdbms2catalog/Schema/schema.sql @@ -18,11 +18,11 @@ CREATE TABLE Description ( -- example data corresponding to products.xml -- -- Product lacking age property -- -INSERT INTO Product (id, name) VALUES ('mpt', 'Monkey Picked Tea'); -INSERT INTO Description VALUES('mpt', 0, 'Picked only by specially trained monkeys'); -INSERT INTO Description VALUES('mpt', 1, 'Rare wild Chinese tea'); +INSERT INTO Product (id, name) VALUES (1, 'Monkey Picked Tea'); +INSERT INTO Description VALUES(1, 0, 'Picked only by specially trained monkeys'); +INSERT INTO Description VALUES(1, 1, 'Rare wild Chinese tea'); -INSERT INTO Product VALUES ('instantTent', '4-Person Instant Tent', 15); -INSERT INTO Description VALUES('instantTent', 0, 'Exclusive WeatherTec system.'); -INSERT INTO Description VALUES('instantTent', 1, '4-person, 1-room tent'); -INSERT INTO Description VALUES('instantTent', 2, 'Pre-attached tent poles'); +INSERT INTO Product VALUES (2, '4-Person Instant Tent', 15); +INSERT INTO Description VALUES(2, 0, 'Exclusive WeatherTec system.'); +INSERT INTO Description VALUES(2, 1, '4-person, 1-compartment tent'); +INSERT INTO Description VALUES(2, 2, 'Pre-attached tent poles'); diff --git a/P/Sda1/rdbms2catalogJpa/Schema/schema.sql b/P/Sda1/rdbms2catalogJpa/Schema/schema.sql index f2dd345da..be699fb39 100644 --- a/P/Sda1/rdbms2catalogJpa/Schema/schema.sql +++ b/P/Sda1/rdbms2catalogJpa/Schema/schema.sql @@ -18,11 +18,11 @@ CREATE TABLE Description ( -- example data corresponding to products.xml -- -- Product lacking age property -- -INSERT INTO Product (id, name) VALUES ('mpt', 'Monkey Picked Tea'); -INSERT INTO Description VALUES('mpt', 0, 'Picked only by specially trained monkeys'); -INSERT INTO Description VALUES('mpt', 1, 'Rare wild Chinese tea'); +INSERT INTO Product (id, name) VALUES (1, 'Monkey Picked Tea'); +INSERT INTO Description VALUES(1, 0, 'Picked only by specially trained monkeys'); +INSERT INTO Description VALUES(1, 1, 'Rare wild Chinese tea'); -INSERT INTO Product VALUES ('instantTent', '4-Person Instant Tent', 15); -INSERT INTO Description VALUES('instantTent', 0, 'Exclusive WeatherTec system.'); -INSERT INTO Description VALUES('instantTent', 1, '4-person, 1-room tent'); -INSERT INTO Description VALUES('instantTent', 2, 'Pre-attached tent poles'); +INSERT INTO Product VALUES (2, '4-Person Instant Tent', 15); +INSERT INTO Description VALUES(2, 0, 'Exclusive WeatherTec system.'); +INSERT INTO Description VALUES(2, 1, '4-person, 1-compartment tent'); +INSERT INTO Description VALUES(2, 2, 'Pre-attached tent poles'); -- GitLab