 |
 |
 |
 |
Warning: include(../levoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ocistatementtype.html on line 46
Warning: include() [ function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ocistatementtype.html on line 46
|
 |
 |
 |
 | |
|  |
(PHP 3>= 3.0.5, PHP 4)
OCIStatementType - возвращает тип OCI-оператора. Описаниеstring OCIStatementType (int stmt)
OCIStatementType() возвращает одно из следующих значений: "SELECT"
"UPDATE" "DELETE" "INSERT" "CREATE" "DROP"
"ALTER" "BEGIN" "DECLARE" "UNKNOWN"
Пример 1. OCIStatementType()
<?php
print "<HTML><PRE>";
$conn = OCILogon("scott","tiger");
$sql = "delete from emp where deptno = 10";
$stmt = OCIParse($conn,$sql);
if ( OCIStatementType($stmt) == "DELETE" ) {
die "You are not allowed to delete from this table<BR>";
}
OCILogoff($conn);
print "</PRE></HTML>";
?> |
|
|  | |
|
 |
 |
 |
 |
Warning: include(../pravoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ocistatementtype.html on line 152
Warning: include() [ function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/ocistatementtype.html on line 152
|
 |
 |
 |
 | |