Introduction to MySQL database environment (6) [figure] _ MySQL

Source: Internet
Author: User
Introduction to MySQL database environment (6) [figure] of course, we can directly use SQL statements to create the table, you only need to enter the following SQL statement in the "SQL editor" tab on the right of-13 and click "execute.


Create table if not exists user (
ID int (10) unsigned not null auto_increment,
Username varchar (50 ),
Password varchar (50 ),
Email varchar (50 ),
Primary key (ID ),
Unique key id (ID ),
KEY ID_2 (ID)
);


2.5.5 add a user data entry

To allow logon in later system development, we first add a user record to the user table. Select the "demo"> "user" option on the left of-13, and the data list of the table is displayed on the "Data Browser" tab on the right, as shown in 2-17.

-17 add a user data entry

Add a User admin in the-17 table, set the password to admin, and the e-mail address to abc@163.com. Click the "√" button in the toolbar to submit and save.

Of course, you can also add the data by executing the following SQL statement in the "SQL editor:

Insert into user VALUES ("1", "admin", "admin", "abc@163.com ");

It should be noted that the SQL execution function of the "SQL editor" can be easily developed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.