If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > No schema in MySQL?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-04, 09:39
jin007 jin007 is offline
Registered User
 
Join Date: Jan 2004
Location: Chicago
Posts: 54
No schema in MySQL?

I just started to learn mySQL. It looks like MS Access. You create tables in a database. No schema.
How should I group my tables?
Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-02-04, 09:50
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: No schema in MySQL?

Quote:
Originally posted by jin007
I just started to learn mySQL. It looks like MS Access. You create tables in a database. No schema.
How should I group my tables?
Thanks.
Tables are grouped in database.
You can create more databases using "CREATE DATABASE" clause.
Reply With Quote
  #3 (permalink)  
Old 04-02-04, 10:37
jin007 jin007 is offline
Registered User
 
Join Date: Jan 2004
Location: Chicago
Posts: 54
Thanks.
But how do I access tables in more than 1 databases in one session?
For example, in a java program I need to query tables in 2 databases.

In Oracle or db2 I can do

SELECT * FROM SCHEMA1.TABLEA join SCHEMA2.TABLEB

How to implement something like this in mySQL?

Thanks.
Reply With Quote
  #4 (permalink)  
Old 04-02-04, 11:33
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Quote:
Originally posted by jin007
Thanks.
But how do I access tables in more than 1 databases in one session?
For example, in a java program I need to query tables in 2 databases.

In Oracle or db2 I can do

SELECT * FROM SCHEMA1.TABLEA join SCHEMA2.TABLEB

How to implement something like this in mySQL?

Thanks.
Yes it is possible (see GRANT clause) but keep in mind MySQL is not Oracle and your example above is not good design of database (in MySQL).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On