Blogger Information
Blog 60
fans 1
comment 1
visits 63676
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
对数据表的理解与总结朱老师
PHP学习
Original
1453 people have browsed it

目录是用来整理文件的,数据库就是用来整理数据表的。


一张数据表,就是一个关系,类似于一张excel表,由行和列组成。

对一张表的操作,就四种: 增,删,改,查,也叫CURD

如果按照表中数据是否发生了变化,其实只有二种操作: 读操作,写操作。

读操作,不论千遍万遍,数据不会发生任何变化。对应: SELECT 语句

写操作,会引起表中数据变化,对应: INSERT, UPDATE, DELETE

INSERT 新增操作,总是添加到表的未尾,所以不需要条件

更新和删除操作,必须设置更新条件,或删除条件,否则会造成大量数据丢失


写操作有三种: 新增(不用条件),更新和删除(基于条件)

读操作一种: 可以有条件,也可以无条件

无论是条件查询还是无条件查询,为防止大量数据撑爆内存,通常要进行LIMIT限制


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 withNews Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!