następna sekwencja postgresql w schemacie
Mam sekwencję na postgresql 9.3 w schemacie.
Mogę to zrobić:
SELECT last_value, increment_by od foo. "SQ_ID";
last_value | increment_by
------------+--------------
1 | 1 (1 fila)
ale to nie działa:
SELECT nextval ('foo.SQ_ID');
ERROR: no existe la relación «foo.sq_id»
LÍNEA 1: SELECT nextval('foo.SQ_ID');
Co jest nie tak ?
Mówi, że nie istnieje relacja «foo.sq_id», ale istnieje.