我在模式内有一个关于 postgresql 9.3 的序列。
我可以做这个:
SELECT last_value, increment_by from foo."SQ_ID";`
last_value | increment_by
------------+--------------
1 | 1 (1 fila)
但这不起作用:
SELECT nextval('foo.SQ_ID');
ERROR: no existe la relación «foo.sq_id»
LÍNEA 1: SELECT nextval('foo.SQ_ID');
怎么了 ?
它说不存在关系foo.sq_id
,但它存在。