Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql trigger select into

CREATE OR REPLACE TRIGGER MYTRIGGER
AFTER INSERT ON SOMETABLE
FOR EACH ROW    

DECLARE
 v_emplid varchar2(10);    

BEGIN
 SELECT
  personnum into v_emplid
 FROM PERSON
 WHERE PERSONID = :new.EMPLOYEEID;

dbms_output.put(v_emplid);

/* INSERT INTO SOMEOTHERTABLE USING v_emplid and some of the other values from the trigger table*/

END MYTRIGGER;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql asc 
Sql :: identify rows with 2 same column value and delete duplicate mysql 
Sql :: how convert into in in sql query 
Sql :: how to find columns with null values in sql 
Sql :: MySQL OR 
Sql :: difference between left outer join and left join in sql 
Sql :: change column in mysql 
Sql :: sql creating tables 
Sql :: how to convert null to float in mysql 
Sql :: Oracle cx_Oracle example 
Sql :: t sql first and last day of week 
Sql :: SQL Switch Databases 
Sql :: timestamp(0) postgresql 
Sql :: what is primary key 
Sql :: mysql begin statement 
Sql :: wp_query raw sql 
Sql :: psql query execution time 
Sql :: SQL SMALLDATETIME Data Type 
Sql :: sql server download for windows 10 64 bit 
Sql :: while mysql 
Sql :: oracle procedure teamplate 
Sql :: ruby sqlite 
Sql :: update all columns in one update 
Sql :: mysql split explode 
Sql :: SQL Equal to Operator 
Sql :: sql query checker 
Sql :: mysql workbench reset performance reports 
Sql :: sql commands in android 
Sql :: mysql config address 
Sql :: formatting code with SQL Developer 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =