Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: Apache Derb...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 3674 of 3876
Post > Topic >>

Re: Apache Derby : create several instances.

by Thomas Kellerer <YQDHXVLMUBXG@[EMAIL PROTECTED] > Mar 11, 2008 at 08:37 AM

Mr. X., 11.03.2008 05:28:
> Hello.
> I am using Apache derby database (Client network).
> I see that when I create table it is created on an instance APP
> (I don't know if instance is the correct word. sorry of my English).
> I see that there are other instances (NULLID,  SQLJ, SYS, etc).
> Can I create an instance of my own in derby database, and how can I do
that 
> ?
> (One instance may be used for repository, another for Datawarehouse,
...)

You are talking about a SCHEMA (not an instance). 

You can create a new schema using the CREATE SCHEMA statement:
http://db.apache.org/derby/docs/10.3/ref/rrefsqlj31580.html

> Another thing :
> If I create several databases for te above reason (repository may be on 
> another db), how can I join them, when I am connected to database1, and
want 
> to run a query that join both tables from database1 and database2 ?

No problem, you can reference tables in a different schema see:

http://db.apache.org/derby/docs/10.3/ref/rreftablename.html
http://db.apache.org/derby/docs/10.3/ref/rrefschemaname.html

Thomas
 




 4 Posts in Topic:
Apache Derby : create several instances.
"Mr. X." <no  2008-03-11 06:28:54 
Re: Apache Derby : create several instances.
Thomas Kellerer <YQDHX  2008-03-11 08:37:03 
Re: Apache Derby : create several instances.
"Mr. X." <no  2008-03-14 06:01:25 
Re: Apache Derby : create several instances.
Thomas Kellerer <YQDHX  2008-03-14 08:36:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 23:05:23 CST 2008.