Global temporary table
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Global temporary table Expand / Collapse
Author
Message
Posted 10/28/2009 5:36:45 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 11/11/2009 1:12:32 PM
Posts: 14, Visits: 39
How to create a GTT from another table

is it like

create global temporary table as
(sel * from employee)
on commit preserve row;

if i do this, the syntax error: something expected between ')' and 'on'

what is the mistake?


-Thank you
Post #17189
Posted 10/29/2009 2:50:04 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 3:55:54 AM
Posts: 111, Visits: 263
create global temporary table t1 as
(sel * from employee)
WITH NO DATA --------------------------
on commit preserve row;

Are you sure you want a Global table, not a volatile?
If the definition of Employee changes, you get the definition of employee as it was when the global temporary definition was created, not as it is now.


Post #17192
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 7:06pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.078. 6 queries. Compression Disabled.