Skip to content

Instantly share code, notes, and snippets.

@YuvrajKhavad
Last active January 1, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YuvrajKhavad/71c1cc416a001b12f04d7373d156026e to your computer and use it in GitHub Desktop.
Save YuvrajKhavad/71c1cc416a001b12f04d7373d156026e to your computer and use it in GitHub Desktop.
SQL query to create a table
CREATE TABLE `employee` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fist_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`gender` TINYINT NOT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment