MySQL/tasks/task-6-1-3.sql

15 lines
583 B
SQL

CREATE SCHEMA luxury_shirts;
CREATE TABLE luxury_shirts.LuxuryShirt (
uuid BINARY(16) NOT NULL,
id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,
typ VARCHAR(26) NOT NULL ,
product_line VARCHAR(26) NOT NULL ,
customer VARCHAR(40) NOT NULL
);
INSERT INTO luxury_shirts.LuxuryShirt SET
uuid = UUID_TO_BIN(UUID()),
typ = 'small polo shirt',
product_line = 'NoblesseOblige',
customer = 'Hans Dampf';