oci_statement_type

(PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0)

oci_statement_typeReturns the type of a statement

Beschreibung

oci_statement_type(resource $statement): string|false

Returns a keyword identifying the type of the OCI8 statement.

Parameter-Liste

statement

A valid OCI8 statement identifier from oci_parse().

Rückgabewerte

Returns the type of statement as one of the following strings.

Statement type
Return String Notes
ALTER  
BEGIN  
CALL Introduced in PHP 5.2.1 (PECL OCI8 1.2.3)
CREATE  
DECLARE  
DELETE  
DROP  
INSERT  
SELECT  
UPDATE  
UNKNOWN  

Returns false on error.

Beispiele

Beispiel #1 oci_statement_type() example

<?php

$conn 
oci_connect('hr''welcome''localhost/XE');

$stid oci_parse($conn'DELETE FROM departments WHERE department_id = 130;');
if (
oci_statement_type($stid) == "DELETE") {
    
trigger_error('You are not allowed to delete from this table'E_USER_ERROR);
}
else {
    
oci_execute($stid);  // delete the row
}

oci_free_statement($stid);
oci_close($conn);

?>

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

FULLLZ.ASIA ✅ DUMPS WITH PIN SHOP ONLINE+TRACK 1&2 MIX 101

FULLLZ.ASIA ✅ Sells UK SQL Data NIN/National Insurance Number/DOB/Sortcode/BankNum FULLLZ.ASIA ✅ worldwide Dumps With Pin Track 1&2 track1 %B4 ...

Geschrieben von dumpstop10 am 12.06.2026 15:06:22
Forum: Jobgesuche
FULLLZ.ASIA ✅ Sells Vaild ATM CLONED CARDS WITH PIN FULLZ DEAD

FULLLZ.ASIA ✅ Sells UK SQL Data NIN/National Insurance Number/DOB/Sortcode/BankNum FULLLZ.ASIA ✅ worldwide Dumps With Pin Track 1&2 track1 %B4 ...

Geschrieben von dumpstop10 am 12.06.2026 15:05:34
Forum: Existenzgründer, Freelancing, Verträge und sonstiges
FULLLZ.ASIA ✅ Available+Paypal+CASHAPP Flip Transfer+ATM Cloned

FULLLZ.ASIA ✅ Sells UK SQL Data NIN/National Insurance Number/DOB/Sortcode/BankNum FULLLZ.ASIA ✅ worldwide Dumps With Pin Track 1&2 track1 %B4 ...

Geschrieben von dumpstop10 am 12.06.2026 15:04:14
Forum: Projekthilfe
FULLLZ.ASIA ✅ sell FULLZ SSN+DOB_PHOTO DL SCANS FULLZ SQL UK

FULLLZ.ASIA ✅ Sells UK SQL Data NIN/National Insurance Number/DOB/Sortcode/BankNum FULLLZ.ASIA ✅ worldwide Dumps With Pin Track 1&2 track1 %B4 ...

Geschrieben von dumpstop10 am 12.06.2026 15:01:55
Forum: Hardware