好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

PostgreSQL连接数据的方法和操作实例 - php高级应用

PostgreSQL连接数据的方法和操作实例

$pg =@pg_connect( "host=localhost user=postgres password=sa dbname=employes" )  or   die ( "can't connect to database." );  $query = "select * from employes order by serial_no" ;  //$query="insert into employes values(10008,'susan','1985-09-04','80','50')";   $result =@pg_query( $pg , $query )  or   die ( "can't run query to table." );  //echo pg_num_rows($result); //输出多少条记录被查询   //if($result)   //{   //echo "recrods inserted sucessfully!";   //echo pg_affected_rows($result);//输出多少条记录被插入   /

查看更多关于PostgreSQL连接数据的方法和操作实例 - php高级应用的详细内容...

  阅读:42次