Get the App
SLTechnology News&Howtos  ›  Database  › 

Mysql Learning Notes (6-DML command)

Shulou Source: shulou.com Published: 2022-06-01 21:49:37 10月02日 Update

DML:INSERT, DELETE, UPDATE, SELECT

INSERT INTO:

INSERT [INTO] tbl_name [(col1,...)] {VALUES | VALUE} (val1,...), (...),...

Note:

Character type: quotation mark

Numeric: cannot use quotation marks

SELECT:

(1) SELECT * FROM tbl_name

(2) SELECT col1, col2, FROM tbl_name

When displayed, fields can be displayed as aliases

Col_name AS col_alias

(3) SELECT col1, FROM tbl_name WHERE clause

WHERE clause: used to specify selection criteria

Col_name operator value:

Age > 30

Operator (1):

>, =

Tags: Characters operators quotes conditions character types aliases ascending order individual fields strings numeric values patterns regular expressions wildcards length combinations commands notes learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information OPPO Reno Shulou Technology Microsoft