Skip to content

Instantly share code, notes, and snippets.

@Wulfheart
Last active September 6, 2021 13:06
Show Gist options
  • Save Wulfheart/bda2d68ef453083de9e0cde3db8daef9 to your computer and use it in GitHub Desktop.
Save Wulfheart/bda2d68ef453083de9e0cde3db8daef9 to your computer and use it in GitHub Desktop.
CREATE table attr (
product_id int,
code varchar(50),
type varchar(50)
);
INSERT into attr (product_id, code, type) VALUES
(1,'a','ec'),
(1,'b','ec'),
(1,'c','ec'),
(1,'d','ec'),
(1,'x','g'),
(1,'y','g'),
(2,'a','ec'),
(3,'b','ec'),
(3,'x','g')
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment