dbTalk Databases Forums  

DB design: storing "this" or "that" (..or "the other")?

comp.databases.mysql comp.databases.mysql


Discuss DB design: storing "this" or "that" (..or "the other")? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: DB design: storing "this" or "that" (..or "the other")? - 07-06-2011 , 01:32 PM






On 7/6/2011 10:49 AM, Bill B wrote:
Quote:
On 7/6/2011 10:28 AM, Jerry Stuckle wrote:
There are a number of tools out there which can create a diagram from an
existing database.


Any recommendations, Jerry? I have looked for the likes of this but have
only found apps that are bloated and kludgy.

Bill B

As Gregor indicated, MySQL Workbench. I use Visio, but that's because I
have it for other things, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #12  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: DB design: storing "this" or "that" (..or "the other")? - 07-06-2011 , 01:33 PM






On 7/6/2011 10:49 AM, Bill B wrote:
Quote:
On 7/6/2011 10:28 AM, Jerry Stuckle wrote:
There are a number of tools out there which can create a diagram from an
existing database.


Any recommendations, Jerry? I have looked for the likes of this but have
only found apps that are bloated and kludgy.

Bill B

I should also add for something like this bloatware isn't as bad as
other times. I don't need to use it much.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #13  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: DB design: storing "this" or "that" (..or "the other")? - 07-07-2011 , 12:38 AM



On 2011-07-06 16:49, Bill B wrote:
Quote:
On 7/6/2011 10:28 AM, Jerry Stuckle wrote:
There are a number of tools out there which can create a diagram from an
existing database.


Any recommendations, Jerry? I have looked for the likes of this but have
only found apps that are bloated and kludgy.
Have a look at Schemaspy (http://schemaspy.sourceforge.net/).


/Lennart

Reply With Quote
  #14  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: DB design: storing "this" or "that" (..or "the other")? - 07-07-2011 , 01:20 AM



On 2011-07-06 13:14, David wrote:
[...]
Quote:
However, other tables in the system, outwith my control, use MyISAM
tables, so I don't think I'd be able to use InnoDB tables (although the
more I read about them, the more sensible a table type they seem).

You can use different types of table in a database, so even if all other
tables are myisam you can create innodb tables

Quote:
"REFERENCES" I didn't know about, so obviously there's some reading for me
to do there,
It's a shorter version of:

foreign key ...
references ...

or

constraint ... foreign key ... references ...

I actually prefer the last one since one can name the constraint that way.

but if you are stuck with myisam it won't do you any good. One highly
annoying "feature" with myisam is that it gladly accepts the syntax, but
silently ignores it.

[...]

Quote:
I'm afraid that "domain table" is a new term for me, could you perhaps
explain what it means?

It might have been a badly chosen word, but the meaning is that you have
a set of values that defines a domain. Example:

create table genders (
gender_code smallint not null primary key
);

-- as defined in ISO-5218
insert into genders (gender_code) values (0),(1),(2),(9);



Now you can reference genders from for example your employees table:

create table employees (
...
gender_code smallint not null references genders (gender_code),
...
);


In some sense genders is the domain for gender_code


/Lennart

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.