Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.
ocidefinebyname() expects the column-name to be in uppercase.
ocidefinebyname() 함수는 페치(fetch)한 컬럼을 사용자정의 php변수 에 할당한다. 물론, 오라클 유저는 select 구문에서 소문자 컬럼명을 쓸수 있지만, ocidefinebyname() 함수의 column-name 인수는 반드시 대문자로 적어야 한다. select 구문에서 존재하지도 않는 변수를 선언해도, 에러는 발생하지않을것이다!
Dernière mise à jour : 2011-10-24
Fréquence d'utilisation : 1
Qualité :
ocidefinebyname() binds php variables for fetches of sql-columns.
(php 3 = 3.0.7, php 4)
Dernière mise à jour : 2011-10-24
Fréquence d'utilisation : 1
Qualité :
the script then deletes * the selected rows using the rowid and commits after each * set of $commitsize rows. (use with care, there is no rollback) * / $conn = ocilogon($user, $password); $stmt = ociparse($conn ,"select rowid from $table $where"); $rowid = ocinewdescriptor($conn,oci_d_rowid); ocidefinebyname($stmt ,"rowid", $rowid); ociexecute($stmt); while (ocifetch($stmt)) {$nrows = ocirowcount($stmt); $delete = ociparse($conn ,"delete from $table where rowid = :rid"); ocibindbyname($delete ,":rid", $rowid,-1,oci_b_rowid); ociexecute($delete); print "$nrows\n"; if (($nrows% $commitsize) == 0) {ocicommit($conn);}} $nrows = ocirowcount($stmt); print "$nrows deleted...\n"; ocifreestatement($stmt); ocilogoff($conn);?
예 2. ocinewdescriptor
Dernière mise à jour : 2011-10-24
Fréquence d'utilisation : 1
Qualité :
Avertissement : un formatage HTML invisible est présent