Home > Backend Development > PHP Tutorial > PHP对postgreSQL数据库进行增删查改,该怎么处理

PHP对postgreSQL数据库进行增删查改,该怎么处理

WBOY
Release: 2016-06-13 13:41:38
Original
878 people have browsed it

PHP对postgreSQL数据库进行增删查改
在myeclipse下,使用PHP对postgreSQL数据库进行增删查改的实例

------解决方案--------------------

PHP code
$db = new PDO('pgsql:dbname=test host=localhost', $user, $pass);
$db ->query('select ......');
$db ->exec('insert ......');
$db ->exec('update ......');
$db ->exec('delete ......');
<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
探讨

PHP code
$db = new PDO('pgsql:dbname=test host=localhost', $user, $pass);
$db ->query('select ......');
$db ->exec('insert ......');
$db ->exec('update ......');
$db ->exec('delete ......');

不明白的翻……
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template