postgresql sequence nextval in schema

前端 未结 2 1009
生来不讨喜
生来不讨喜 2020-12-24 10:52

I have a sequence on postgresql 9.3 inside a schema.

I can do this:

SELECT last_value, increment_by from foo."SQ_ID";`


        
2条回答
  •  甜味超标
    2020-12-24 11:47

    The quoting rules are painful. I think you want:

    SELECT nextval('foo."SQ_ID"');
    

    to prevent case-folding of SQ_ID.

提交回复
热议问题