欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

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

程序员文章站 2023-12-27 11:53:27
...
";
echo "";
echo "serial_no";
echo "name";
echo "birthday";
echo "";
for ($i = 0; $i ";
    echo "$serial_no";
    echo "$name";
    echo "$birthday";
    echo "";
}
echo "";
//实例二[pg_fetch_array]
//echo "
"; //echo ""; //echo ""; //echo""; //echo""; //echo""; // //for($i=0;$i"; //echo""; //echo""; //echo""; //echo""; // //} //echo"
serial_nonamebirthday
$serial_no$name$birthday
"; //增加,删除,修改实例 //$newrow=array("serial_no"=>"1006","name"=>"peter","birthday"=>"1990-07-03","salary"=>"90","bonus"=>"80"); //$reusult=@pg_insert($pg,"employes",$newrow) or die("can't insert data to table.");//开源代码phprm.com //if($reusult) //{ //echo "rechords inserted sucessfully!"; //} // pg_close($pg);


本文地址:

转载随意,但请附上文章地址:-)

上一篇:

下一篇: