Home| Progetto| Web| Faq| Acronimi | ||||
Argomenti Documenti pubblicabili:1120
Scripts:1282 Documenti non pubblicabili:162 Categorie tematiche:68 .Net |_C# |_Visual basic.net |_Asp.net Active Server Pages C++ Cascade Style Sheet JavaScript Mysql Php Xml Java |_Java 2 Micro Edition |_Java server pages |_Java Servlet Oracle |_PLSQL PostgreSQL Unix
PLSQL...
Info:
Exception
Oracle...
Script:
dbms_output.put_line
Unix...
Tip:
Eseguire pił comandi in una sola linea
PLSQL...
Script:
Esempio funzione MOD
PLSQL...
Tip:
Function
Shell scripting...
Script:
Cercare e visualizzare file per dimensione
Basically, a web session can be defined as the timeframe in which a visitor navigates your web site.
Php Funzione mail()
XPath is a language for addressing parts of an XML document.
It is designed to be used by XSLT and XPointer.
Basically, a web session can be defined as the timeframe in which a visitor navigates your web site.
|
PLSQL
Home >PLSQL > Trigger conditional code based on event type
In some scenario, within the same trigger you may need different logic depending the type of triggering event such insert or delete. Try always to keep trigger plsql code simple and short (about 60 lines maximum).
-- first create a sample table
SQL> create table t1 (n number, v varchar2(8), d date default sysdate);
SQL>
SQL> Trigger created.
CREATE OR REPLACE TRIGGER trg_test_t1 BEFORE DELETE OR UPDATE OR INSERT ON t1 FOR EACH ROW BEGIN IF INSERTING THEN dbms_output.put_line(' Hello insert ' || :new.v ); END IF; IF UPDATING THEN dbms_output.put_line(' Hello update ' || :new.v ); END IF; IF DELETING THEN dbms_output.put_line(' Hello delete ' || :old.v ); END IF; END; / Make sure the trigger is created and valid and then try it out: Let's tried
SQL> set serveroutput on
SQL> insert into t1(n,v) values (2,'a'); Hello insert a 1 row created. SQL> update t1 set v='b' ; Hello update b 1 row updated. SQL> delete t1 ; Hello delete b 1 row deleted. Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131 Tutorial ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Script ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Comandi ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Codici errore ![]() ![]() ![]() ![]() ![]() |
Cerca
PLSQL...
Info:
Exception
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
PLSQL...
Info:
Rapprensentare un apostrofo in sql e pl/sql
PLSQL...
Definizioni:
PL/SQL
Oracle...
Definizioni:
Schema and user
Shell scripting...
Script:
Determinare il numero di elementi di un array
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect |