i can select last record by this query
select first 1 idt from table1 order by id desc;
but i want to add a record ( id ++) to end of table in informix
i can select last record by this query
select first 1 idt from table1 order by id desc;
but i want to add a record ( id ++) to end of table in informix
Copyright © 2021 Jogjafile Inc.
If I understand correctly, you want a
SERIALcolumn in Informix. This is a column that automatically increments when you add a new value.So, the table should be defined as:
Then when you do an insert, leave out the
id:The
idwill be automatically incremented and inserted with the data.