I'm new to PostgreSQL and I'm just reading about sequences.
If a sequence is created with upper and lower letters, e.g.
Expand|Select|Wrap|Line Numbers
- create sequence "MySeq"
Expand|Select|Wrap|Line Numbers
- insert into table values (nextval('"MySeq"')
If you do:
Expand|Select|Wrap|Line Numbers
- delete from table where something='Test';
Why isn't it enough for nextval ? Why is it done this way ?
Also, is there a way to automatically insert an incremented
value ? I thought it could be done by inserting null values,
but it inserts a null value - it doesn't trigger the nextval function
to be called, even when a field is defined as default nextval(' ')
Is there a way to achieve it ?
Cheers,
Adrian