nextval('foo') operates on sequence foo nextval('FOO') operates on sequence foo nextval('"Foo"') operates on sequence Foo
The sequence name can be schema-qualified if necessary:
nextval('myschema.foo') operates on myschema.foo nextval('"myschema".foo') same as above nextval('foo') searches search path for foo
<next value expression> ::=NEXT VALUE FOR <sequence generator name>
"SCHEMA"."SEQUENCE".nextval
[SCHEMA].[SEQUENCE].nextval
nextval('SCHEMA.SEQUENCE')
next value for "SCHEMA"."SEQUENCE"
next value for [SCHEMA].[SEQUENCE]
"SEQUENCE".next_value
?
--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/DlFc-BFsuE0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database+unsubscribe@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.
Hmmm.
Our current support is fairly ... extensive :-)
We support
nextval('SCHEMA.SEQUENCE')
nextval('SCHEMA', 'SEQUENCE')
and in both these cases we will do a case-sensitive match, and if that fails, a case-insensitive match.
We also support:
sequence.NEXTVAL
schema.sequence.NEXTVAL
"sequence".NEXTVAL -- for case-sensitive identifiers
I don't see why we can't add PostgreSQL's peculiar variant to that, given how much variation we already support :-)