Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2008

Tip: Looking for answers? Try searching our database.

Derby & Oracle.

Thread view: 
Mr. X. - 14 Mar 2008 05:14 GMT
Hello,

What is the equivalent for Derby, that is in oracle.

1. Select 1 from dual.
2. How can I create sequences ?

Thanks :)
Arne Vajhøj - 14 Mar 2008 23:44 GMT
> What is the equivalent for Derby, that is in oracle.
>
> 1. Select 1 from dual.

SELECT 1 FROM SYSIBM.SYSDUMMY1

(yes - the IBM roots can be seen)

> 2. How can I create sequences ?

Derby uses identity columns like SQLServer and MySQL
not sequences like Oracle.

Arne
Mr. X. - 16 Mar 2008 11:21 GMT
For you answers :
1. Thanks.
2. I am looking for an alternative that is much like sequence
(table + some scripts ...), please.

Thanks :o)
Arne Vajhøj - 16 Mar 2008 16:51 GMT
> For you answers :
> 1. Thanks.
> 2. I am looking for an alternative that is much like sequence
> (table + some scripts ...), please.

Create a table mysequence with one column that are marked as identity.

Arne
Donkey Hot - 20 Mar 2008 19:52 GMT
Arne Vajhøj <arne@vajhoej.dk> wrote in news:47dd41b2$0$90265$14726298
@news.sunsite.dk:

>> For you answers :
>> 1. Thanks.
[quoted text clipped - 4 lines]
>
> Arne

There will not be NEXTVALUE or CURRENTVALUE, or will there?
Arne Vajhøj - 21 Mar 2008 00:41 GMT
> Arne Vajhøj <arne@vajhoej.dk> wrote in news:47dd41b2$0$90265$14726298
> @news.sunsite.dk:
[quoted text clipped - 5 lines]
>
> There will not be NEXTVALUE or CURRENTVALUE, or will there?

You INSERT in that table and use IDENTITY_VAL_LOCAL().

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.