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 > Schema in MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-07, 11:10
Chriz81 Chriz81 is offline
Registered User
 
Join Date: Jun 2007
Posts: 19
Schema in MySQL

Hi,

is there a possibilty in a MySQL Database to use Schemas? I can't find anything like this.

Example: select * from schema.table;

Chris
Reply With Quote
  #2 (permalink)  
Old 06-30-07, 11:23
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
yes, they're called databases

example: select * from dbname.tablename
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-30-07, 11:54
Chriz81 Chriz81 is offline
Registered User
 
Join Date: Jun 2007
Posts: 19
Thx! But for instance in the DB2 I have a database and additional a schema.

That's not possible in MySQL, right?
Reply With Quote
  #4 (permalink)  
Old 06-30-07, 12:30
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
In mysql, a schema and a database are names for the same thing. Starting in mysql 5.0.2 you can use either syntax -
Code:
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
    [create_specification [create_specification] ...]
Reply With Quote
  #5 (permalink)  
Old 07-03-07, 15:50
Chriz81 Chriz81 is offline
Registered User
 
Join Date: Jun 2007
Posts: 19
thanks,
Chris
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