Blogger Information
Blog 42
fans 5
comment 0
visits 38614
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
MYSQL 增删改查
张浩刚
Original
834 people have browsed it

MYSQL 增删改查

注意区分 ```````` ‘’’’’’’

1、增:INSERT INTO `数据表名`(`字段1`,`字段2`,`字段3`) VALUES(‘值1’,’值2’,’值3’) WHERE 增加内容条件

2、改:UPDATE `数据表名` SET `字段1`=’值1’ `字段2`=’值2’ WHERE 改内容的条件(如:where id=5)

3、删:DELETE FROM `数据表名` WHERE 删除条件(如:where id=5)

4、查:SELECT `字段名` FROM `数据表名` WHERE 查询条件(如:where id>5 and id<10 还有其他如 or limit)

5、limit: limit 2表示显示2条内容;;;limit 2,5(2表示起始位置,5表示显示条数)

Correcting teacher:查无此人查无此人

Correction status:qualified

Teacher's comments:完成的不错,继续加油
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post