Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gmmastros on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About SERIAL datatype in Informix

Status
Not open for further replies.

stephenraj

Programmer
Jan 13, 2003
9
0
0
IN
Hi Shriyan,

I have asked for auto increment column support in Informix database, u have given a solution of a datatype called serial, thanks for the same. In ur example u have created a temporary table.

Example Given by You.
--------------------

create temp table tab1 (f1 serial) with no log ;
insert into tab1 values (0) ;
-- show the generated sequence number.
select dbinfo('sqlca.sqlerrd1') from systables where tabid=1 ;


This again makes me to ask this question,

1. Is the serial column applicable only for the temporary tables?


2. Can we alter a serial column, if so can i just get the corresponding alter statement.

Thank u,

Regards,
Stephenraj


 
Stephen:

Please refer the following thread:

thread179-446541

Regards,
Shriyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top