Add, query, modify, and delete MySQL table operations

Source: Internet
Author: User

Add, query, modify, and delete MySQL table operations

 

01 INSERT data

Insert into 'table _ name' ('column01 _ name', 'column02 _ name',...) VALUES (value01, value02 ,...)

02 query data SELECT

SELECT * FROM 'table _ name' WHERE 'column01' = value01 and 'column02' = value02 and...

03 modify data UPDATE

UPDATE 'table _ name' SET 'column01 _ name' = new_value01, 'column02 _ name' = new_value02 ,...

04 DELETE data

Delete from 'table _ name' WHERE 'column01 _ name' = value01, 'column02 _ name' = value02 ,...

 

14:47:07 on BIT/#10/315


Help php to operate mysql. Combined with forms, js can add, delete, query, and modify data.

I advise you not to write it.

You can use others, but you cannot master them completely if you write different words.

My QQ747024605 indicates Baidu, you write a program, and I will fix it for you.

Root users cannot remotely log on to mysql to operate on permissions. They can only add, delete, modify, and query tables or databases. Why? Guidance

The -- skip-grant-table can be used to ignore the permission.
#./Mysqld start -- skip-grant-table
# Mysql-uroot-S/home/mysqlData/mysqld. sock
Mysql> show databases;

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.