Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Drop all tables at once or one at a time

It might not make a diiference but I was wondering if there was any efficienies with dropping all resident tables at end of script versus one at a time throughout the script.

12 Replies
m2r4miller
Contributor III
Contributor III

I thought the same thing, but then realized that every time a DROP is executed, the TableName() is affected because the table doesn't exist any longer.

I revamped my code above to store the table names in a variable and drop them all at once.

-Mark

rajpahan1
Contributor
Contributor

HI LITLE CONFUSION BETWEEN THE STEPS if isnull(d) then i = 250 end if if d <> null() then drop $(d); end if WHAT THESE STEP MEANS WHY YOU USED ISNULL WITH VARIABLE D AND D NOT EQUAL TO NULL AND USED "NEXT" AFTER THIS WHAT WAS THE PURPOSE OF THAT PLEASE REPLY I AM NEW TO QLIKVIEW SO NEED YOUR HELP
rajpahan1
Contributor
Contributor

HI LITLE CONFUSION BETWEEN THE STEPS

if isnull(d) then

i = 250

end if

if d <> null() then

drop $(d);

end if

WHAT THESE STEP MEANS WHY YOU USED ISNULL WITH VARIABLE D AND D NOT EQUAL TO NULL AND USED "NEXT" AFTER THIS WHAT WAS THE PURPOSE OF THAT PLEASE REPLY I AM NEW TO QLIKVIEW SO NEED YOUR HELP