|
|
|
อยากทราบคำสั่ง ที่ใช้ในการนับจำนวน record ของ oracle อ่าค่ะ |
|
|
|
|
|
|
|
Code (PHP)
<?
$objConnect = oci_connect("myuser","mypassword","TCDB");
$strSQL = "SELECT * FROM CUSTOMER ORDER BY CUSTOMERID ASC";
$objParse = oci_parse ($objConnect, $strSQL);
oci_execute ($objParse,OCI_DEFAULT);
$Num_Rows = oci_fetch_all($objParse, $Result);
?>
|
|
|
|
|
Date :
2009-03-24 15:51:31 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
งงตรงตัวแปร $Result ใช้เก็บไรค่ะ
|
|
|
|
|
Date :
2009-03-24 15:58:36 |
By :
birdubu |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<?
$objConnect = oci_connect("myuser","mypassword","TCDB");
$strSQL = "SELECT * FROM CUSTOMER ORDER BY CUSTOMERID ASC";
$objParse = oci_parse ($objConnect, $strSQL);
$Result = oci_execute ($objParse,OCI_DEFAULT);
$Num_Rows = oci_fetch_all($objParse, $Result);
?>
ลองดูครับ สู้ๆ ครับ
|
|
|
|
|
Date :
2009-03-24 16:02:43 |
By :
dr.website |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|