Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

Truncate a table then insert data

create or replace procedure myProcedure
AS
BEGIN
    execute immediate 'truncate table Event_name';    
    insert into Event_name select * from Event_name;
END;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Truncate #table #insert #data
ADD COMMENT
Topic
Name
3+8 =