3小时Mysql入门
sql语句中<>与!=作用一样
REGEXP–正则
- REGEXP ‘[gim]e’—-搜索ge ie me
- REGEXP ‘[a-h]e’
- where中,^—-beginning $—-end |—-logical or
- excise
select * |
NULL
select * |
ORDER BY
# |
LIMIT
# |
JOIN
# |
LEFT_JOIN&RIGHT_JOIN
# |
USING
# |
NATURAL JOIN
# |
CROSS JOIN
select o.order_id |
UNION
# 多张表的连接 |
INSERT INTO
insert into customers |
last_insert_id
# |
CREATE
# |
UPDATE
update invoices |
DELETE
delete |