HOME   ·Î±×ÀΠ  ȸ¿ø°¡ÀÔ
    
ȸ¿ø°¡ÀÔ
ºñ¹Ð¹øÈ£ ã±â ÀÚµ¿·Î±ä
ÀÌÀü°Ô½ÃÆÇ
   free_board
   °Ç°­°Ô½ÃÆÇ
   ¿À¶óŬDB
   Linux
   HTML/javascript
   Áú¹®°ú ´ä
È£¼­±â
   À̹ÌÁö°Ô½ÃÆÇ  
   °Ç°­°Ô½ÃÆÇ  
   À½¾ÇÀÚ·á  
   ¼ºÁØÀÌ °Ô½ÃÆÇ  
[ÀϹÝ] »èÁ¦ °»½Å »ðÀÔ µî Àû¿ëµÈ row ¼ö¸¦ ¸®ÅÏ OCIRowCount
  È£¼® ´Ô²²¼­ ¾´ ±ÛÀÔ´Ï´Ù - 211.¢½.74.31 ÀÐÀ½:3580  
OCIRowCount
(PHP 3>= 3.0.7, PHP 4 )

OCIRowCount -- Àû¿ëµÇ¾îÁø ¿­ÀÇ °¹¼ö¸¦ °¡Á®¿Â´Ù
Description
int OCIRowCount ( int statement)


OCIRowCount()ÇÔ¼ö´Â update°°Àº ±¸¹®¿¡ ÀÇÇØ Àû¿ëµÇ¾îÁø ¿­ÀÇ °¹¼ö¸¦ ¸®ÅÏÇÑ´Ù. ÀÌ ÇÔ¼ö´Â select °¡ ¸®ÅÏÇÒ ¿­ÀÇ °¹¼ö¸¦ ¸»ÇØ ÁÖÁø ¾ÊÀ» °ÍÀÌ´Ù!

¿¹ 1. OCIRowCount

<?php
    print "<HTML><PRE>";
    $conn = OCILogon("scott","tiger");
    $stmt = OCIParse($conn,"create table emp2 as select * from emp");
    OCIExecute($stmt);
    print OCIRowCount($stmt) . " rows inserted.<BR>";
    OCIFreeStatement($stmt);
    $stmt = OCIParse($conn,"delete from emp2");
    OCIExecute($stmt);
    print OCIRowCount($stmt) . " rows deleted.<BR>";
    OCICommit($conn);
    OCIFreeStatement($stmt);
    $stmt = OCIParse($conn,"drop table emp2");
    OCIExecute($stmt);
    OCIFreeStatement($stmt);
    OCILogOff($conn);
    print "</PRE></HTML>";
?>


¸ñ·Ï

ºÐ·ù ¼±ÅÃ
1 ÀÏ¹Ý TEST (1) È£¼® 05-06-11 3420
  ÀÏ¹Ý    TEST È£¼® 05-06-13 3426
2 ÀÏ¹Ý RAISE_APPLICATION_ERROR È£¼® 05-06-20 4695
3 ÀÏ¹Ý ¹é¾÷À» À§ÇÑ Ç¥ÁØ ½ºÅ©¸³Æ®ÀÇ ÀÛ¼º È£¼® 05-07-06 3836
4 ÀÏ¹Ý ORA-01034: ORA-27101: ¿¡·¯¹ß»ýÀº ÁÖ·Î SID ¹®Á¦ È£¼® 05-07-06 7403
5 ÀÏ¹Ý ¿ë·®°è»ê Å×À̺í À妽º, µ¥ÀÌºí ±âŸ È£¼® 05-07-06 6055
6 ÀÏ¹Ý SGA TUNING SCRIPT È£¼® 05-07-22 3430
7 ÀÏ¹Ý ÇÁ·Î¾¾ pro*c ÄÄÆÄÀÏ ¹æ¹ý (1) È£¼® 05-08-01 4004
  ÀÏ¹Ý    ÇÁ·Î¾¾ pro*c ¿µ¹®¸Þ´º¾ó È£¼® 05-08-01 3602
8 ÀÏ¹Ý ORACLEÀÌ DEFAULT·Î »ý¼ºÇØÁÖ´Â DATABASE USERS È£¼® 05-08-02 3600
7 ÀÏ¹Ý    ¿À¶óŬ ÇÁ·ÎC ½Ç½À¿¹Á¦ ÆÄÀÏ È£¼® 05-08-02 4129
  ÀÏ¹Ý    ÇÁ·Î¾¾ pro*c ÆÄ¿öÆ÷ÀÎÆ® ÀÚ·á È£¼® 05-08-02 4175
  ÀÏ¹Ý    ÇÁ·Î¾¾ pro*c PDF ÀÚ·á È£¼® 05-08-02 4901
  ÀÏ¹Ý    Programmer's Guide to the Pro*C/C++ Precompiler È£¼® 05-08-02 4229
ÀÏ¹Ý »èÁ¦ °»½Å »ðÀÔ µî Àû¿ëµÈ row ¼ö¸¦ ¸®ÅÏ OCIRowCount È£¼® 05-08-03 3580
1 [2] [3] [4] [5] [6] [7] [8] [9] [10]  ´ÙÀ½¸Ç³¡

 
Copyright © zenos.pe.kr. All rights reserved.