how to truncate multiple tables in vertica assume 300+ tables
below is the sql code
sqlplus -s user password
declare
cursor c1 is select distinct(tname) from tab
begin
for i in c1
loop
begin
execute immediate 'TRUNCATE TABLE ' || i.TNAME;
end
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
