PHP Query for Oracle temp table, why empty

Source: Internet
Author: User
PHP Query Oracle Temp table, why empty?

$dbOracle =oci_connect ("The database connection is normal, the query is not a temporary table is normal");



"
"
"
"
"END;"; /do not begin to write directly SQL is the same $stid = Oci_parse ($dbOracle, $ORACLESQL);

$r =oci_execute ($stid);
Print_r ($R);

$ORACLESQL = "SELECT * from Fs_tt";
$stid = Oci_parse ($dbOracle, $ORACLESQL);
$r =oci_execute ($stid);
Print_r ($R);




Permissions? My PHP connection with the user name password, and Plsql used the same

while ($row = Oci_fetch_assoc ($stid)) {
echo $row [' NAME '], "
\ n ";
}


------Solution--------------------
May be where rownum <=2 ;Query failure caused by a subsequent semicolon

You
$ORACLESQL = "INSERT INTO FS_TT select * from FS where rownum <=2";
Look
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.