You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Bernd Ruehlicke (JIRA)" <de...@db.apache.org> on 2004/12/16 21:43:01 UTC

[jira] Commented: (DERBY-103) Global Oracle/Axion style sequence generator

     [ http://nagoya.apache.org/jira/browse/DERBY-103?page=comments#action_56793 ]
     
Bernd Ruehlicke commented on DERBY-103:
---------------------------------------

Of course it should also support code like

....
s = getConnection().createStatement();
String query = "select module_s, mySql.nextval from my_module";
r = s.executeQuery(query);

r.next();
String module_s = r.getString(1);
String new_s = r.getString(2);

...


> Global Oracle/Axion style sequence generator
> --------------------------------------------
>
>          Key: DERBY-103
>          URL: http://nagoya.apache.org/jira/browse/DERBY-103
>      Project: Derby
>         Type: Wish
>     Reporter: Bernd Ruehlicke

>
> The identity column generator is just not enought. It would just be wonderful if Derby had commands like
> CREATE SEQUENCE mySeq;
> values mySeq.nextval;
> values mySeq.currval;
> CREATE TABLE my_table (
>     id integer default mySeq.nextval,
>     value varchar(40)
> )
> DROP SEQUENCE mySeq;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira