Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.49 KB | None | 0 0
  1. USE `qhogimrzh51pr146`;
  2.  
  3. CREATE TABLE IF NOT EXISTS `accounts` (
  4.   `id` int(11) NOT NULL,
  5.   `username` varchar(50) NOT NULL,
  6.   `password` varchar(255) NOT NULL,
  7.   `email` varchar(100) NOT NULL
  8. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  9.  
  10. INSERT INTO `accounts` (`id`, `username`, `password`, `email`) VALUES (1, 'test', 'test', 'test@test.com');
  11.  
  12. ALTER TABLE `accounts` ADD PRIMARY KEY (`id`);
  13. ALTER TABLE `accounts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement