SyntaxFix
Write A Post
Hire A Developer
Questions
The quoting rules are painful. I think you want:
SELECT nextval('foo."SQ_ID"');
to prevent case-folding of SQ_ID.
SQ_ID