Blogger Information
Blog 49
fans 0
comment 0
visits 38152
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
mysql简单处理表格与pdo预处理的作用
超超多喝水
Original
637 people have browsed it

mysql处理表格常用语句

创建表:CREAT TABLE

更改表:ALTER TABLE

删除表:DROP TABLE *

删除数据库:DROP DATEBASE *

查询数据:SELECT * FROM * WHERE *

插入数据:INSERT INTO * VALUES * 

//更新数据跟删除数据一定记住带着WHERE,不带的话影响的是整个表

更新数据:UPDATE * SET * WHERE*

删除数据:DELETE FROM * WHERE*

也可以用Navicat for MySQL或phpadmin等可视化工具来建立数据库

1629600237(1).jpg

PDO预处理的作用:

PDO的预处理可以确保不会发生SQL 注入,可以避免重复分析/编译/优化周期,简言之,预处理语句占用更少的资源,因而运行得更快。

Correcting teacher:PHPzPHPz

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