Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Copying contents of a temp table

Hi everyone,

This might have a quick and simple answer but I am trying to copy the contents of one temp table to another one. Anyt idea how this can be done?

Eg:

connect to OLE DB ....

sql select *

from "table_name";

load abc,

          pqr,

          xyz

resident #temp;

drop table #temp;

now, how can I copy contents of this #temp table into another temp table say #test ??

Please let me know!

Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

He,

If I understood you correctly, you could do this:

#test:

noconcatenate load *

resident

#temp;

drop tables #temp;

You have to make sure that you drop the original table otherwise qlikview will automaticaly make a syntetic key between the tables.

gr

frank

View solution in original post

4 Replies
MayilVahanan

HI,

     Before drop table, you can use like this,

     #test:

     Load * resident #temp;

     Drop table #temp;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

He,

If I understood you correctly, you could do this:

#test:

noconcatenate load *

resident

#temp;

drop tables #temp;

You have to make sure that you drop the original table otherwise qlikview will automaticaly make a syntetic key between the tables.

gr

frank

Not applicable
Author

Hi Mayil,

Sorry for the wrong reply previously!
This script runs but doesnt give me another table #test!
Any suggestions?

Not applicable
Author

frankcrezee,

This works just perfect!

Thanks!

Appreciate prompt response!