Jump to content

Critique my chon. database design


zyrolasting

Recommended Posts

Hello folks.

 

I've read a new book that covered normalization and I'm thinking about applying what I learned by altering my tables. I still am not as experienced with MySQL "hands on", so I'd appreciate people better than me pushing me in the right direction. As it stands, I am the one who uploads the most to my site. I just update a blog and portfolio. There are several different categories under the blog that I segregate into different tables, always under one declaration. I don't understand why that int(10) is there... I asked for just one, but this is what the "copy create statement to clipboard" command in MySQL Query Browser gave me.

 

CREATE TABLE  ... (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(45) NOT NULL,
  `content` varchar(45) NOT NULL,
  `outLink` varchar(45) NOT NULL,
  PRIMARY KEY (`id`),
  FULLTEXT KEY `titleInd` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

 

I'm assuming duplicate tables may be a problem, but I'm having difficulty seeing all content concatenated.

 

outLink links to another table's filename column like a foreign key. I say "like" since I use MyISAM for  a FULLTEXT index, as title and content are loaded with text. (I enjoy writing. ) I would be querying another table with outlink's value when neccessary. I would always get just one row at a time. Every value in every table is unique, but if I ever want to introduce a new content type to the site, I need to make a new table of the above declaration.

 

I am an ameteur, so I'll gladly hear what you have to say to learn more. Just please don't bash. If I've made a mistake, please don't rub it in my face. Sorry for the disclaimer, I just had bad luck in other forums.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.