Skip to content

Instantly share code, notes, and snippets.

@CodingTricksHub CodingTricksHub/createTables.sql Secret
Last active Jun 15, 2017

Embed
What would you like to do?
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(11) NOT NULL,
`categoryName` text NOT NULL
);
CREATE TABLE IF NOT EXISTS `favouritecategories` (
`id` int(11) NOT NULL,
`email` text NOT NULL,
`categoryId` text NOT NULL
);
ALTER TABLE `favouritecategories`
ADD PRIMARY KEY (`id`);
ALTER TABLE `favouritecategories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.