Re: Some SQL-Questions!
Posted in 1998
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
Magnus Westling <magnus.westling@commentor.se> asked:
>Does anyone know the syntax for creating temptables in informix. I know
>how it works in sybase?
As well as the previously mentioned:
SELECT * FROM SomeWhere INTO TEMP TempTable WITH NO LOG;
You can also do an explicit:
CREATE TEMP TABLE TempTable
(
...
);
You can only use a subset of the constraints that can be applied to a
normal table -- specifically, you cannot name the constraints, and there
are probably some other things you can't do (like create foreign keys on
the temp table, because no other process could see the table to check the
FK constraint!).
Yours,
Jonathan Leffler (jleffler@informix.com) #include <back-again.h>
PS: What's the Sybase syntax?