happy cat image

everdevel

coding

login
NotificationX
  • Currently, only notices of comments are displayed.
  • no comment or please login

Create Table

Now that we have created the database, let's create a table that contains member information.

CREATE TABLE `member`(
  `memberID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `userId` varchar(20) NOT NULL COMMENT 'ID',
  `name` varchar(20) NOT NULL COMMENT 'name',
  `nickname` varchar(20) NOT NULL COMMENT 'nickname',
  `password` varchar(50) NOT NULL COMMENT 'password',
  `email` varchar(40) NOT NULL COMMENT 'email address',
  `birthday` char(10) NOT NULL COMMENT 'birthday',
  PRIMARY KEY(`memberID`),
  UNIQUE KEY `userId`(`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

terminal

php image

So let's finish this course and write the next one.


Thank you for visiting. If you have any inquiry or explanation of mistakes, please use the comments below.


    
    

Back to the course

ALL COMMENTS 0

Sort by