MySQL simple additions and deletions to change the search

Source: Internet
Author: User

Using Mysql-essential-5.1.55-win32.msi and Navicat for MYSQL

1. Add a table

CREATE TABLE userinfo (uuid varchar(36) NOT NULL PRIMARY KEY,username varchar(30) NOT NULL,userpassword varchar(30) NOT NULL)

The new status after

2. Inserting data

INSERT INTO userinfo VALUES("1","name","123456")

State after inserting data

3. Delete data

DELETE FROM userinfo WHERE uuid="2"

Pre-delete state

Perform the Delete

Delete Succeeded

4. Modify the data

UPDATE userinfo SET username = "xiaoming" WHERE uuid="2"

Before modification

Perform modifications

Modification succeeded

5. Query data

(1) Search all contents

SELECTFROM

Query results

(2) Query the specified content

SELECT username FROM userinfo WHERE uuid="2"

Query results

MySQL simple additions and deletions to change the search

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.