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 > General > Database Concepts & Design > data type question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-08, 10:26
lmei007 lmei007 is offline
Registered User
 
Join Date: Jun 2008
Posts: 20
data type question

1. read a book, cannot really understand the following sentence:
"Data types vary from one RDBMS to another, so a user might need to use metadata to establish the data types used by a particular database."

Is that mean there is a metadata which is portable from one RDBMS to another?

2. using powerdesigner, confused by its int, integer, int(%n) and integer(%n). and also other tools use all upper case data type. ?????
Reply With Quote
  #2 (permalink)  
Old 06-09-08, 10:53
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Is that an exact quote? It doesn't make much sense to me...

If you need to compare the datatypes between two RDBMSs then consult the documentation. Unless the author meant databases not RDBMSs....
Reply With Quote
  #3 (permalink)  
Old 06-09-08, 10:55
lmei007 lmei007 is offline
Registered User
 
Join Date: Jun 2008
Posts: 20
Quote:
Originally Posted by pootle flump
Is that an exact quote?
Yes. I copied.
Reply With Quote
  #4 (permalink)  
Old 06-09-08, 11:15
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
PowerDesigner is a tool that manipulates more than one database engine (IBM DB2, Microsoft, MySQL, Oracle, Sybase, etc). Each engine implements different datatypes, and some of the engines have datatypes with the same name but different implementation specifics.

I suspect that the point that the author was trying to make is that the designer should not rely on any particular assumptions (is an INT 16, 32, or 64 bits long, is it signed or unsigned, etc). The long standing assumption among academic modelers is that the modeler is responsible for creating appropriate data types for each attribute (column), then mapping those custom types to what the implementation supports at the time the schema is implemented from the model.

-PatP
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