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

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

WBOY
WBOYOriginal
2016-06-13 13:41:38858browse

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>
探讨

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

不明白的翻……
Statement:
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