auto generated primary key
Posted: Sun Jun 11, 2006 3:54 am
Trigger : when create recorde.
select Max(id)+1 int :table1.ID
from table1;
i am having problem when more than one user are using same form.
If i use sequence no then, there are chances of having gap between primary
key no like 1,2,3,5,7,20 etc. because if sequence generated id lost ,it can not be generated again.
in need result like this
1,2,3,4,5...n with gap in primary ket field.
thanks
select Max(id)+1 int :table1.ID
from table1;
i am having problem when more than one user are using same form.
If i use sequence no then, there are chances of having gap between primary
key no like 1,2,3,5,7,20 etc. because if sequence generated id lost ,it can not be generated again.
in need result like this
1,2,3,4,5...n with gap in primary ket field.
thanks