Blogger Information
Blog 29
fans 0
comment 1
visits 19295
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
什么是 PDO- 11-21日
风清扬
Original
770 people have browsed it

. 什么是 PDO
PDO: (Php Data Object) php数据对象
PDO 统一了PHP访问各种类型数据库的访问方式
一句话, 不管什么类型数据库, PDO一招搞定
增删改查

// 创建 创建SQL语句模板
$sql = ‘INSERT INTO system SET sys_id= :sys_id, title=:title, desc=:desc, key=:key, copy=:copy’;

// 修改 创建SQL语句模板
$sql = ‘UPDATE category SET name = :name, alias = :alias WHERE cate_id=:cate_id’;

// 删除 创建SQL语句模板
$sql = ‘DELETE FROM category WHERE cate_id=:cate_id’;

// 查询. 创建SQL语句模板
$sql = ‘SELECT * FROM movies WHERE cate_id = :cate_id’;

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!