September 12NermalisationComments
Display comments as
(Linear | Threaded)
I normally use fixed char(36) primary keys containing an UUID. If collation is binary this is not much slower than int (of course it is since it is larger), but it has so many advantages. You get a unique id for the lifetime of the record (including exports, backups and syncronisation). This is good for auditing and merging of data streams.
While this extends beyond the scope of an introduction, it might be as good a time as any to draw everyone's attention to the *auto_increment_increment* and *auto_increment_offset* server-options (both added in 5.0.2). These might be relevant depending on one's use case.
http://dev.mysql.com/doc/mysql/en/server-system-variables.html
Nice little article, and I like how you've used cats in your examples :)
I am a little unclear what the point here is though... break tables up?
The point is that you have the option to not do, but then you'll be in a world of pain. The point is also to show that if you do it, how to do it. A more technical approach is here:
http://en.wikipedia.org/wiki/Database_normalization |
QuicksearchComments about An InnoDB tutorial Mon, 21.07.2008 11:13 I have a problem in deleting t he child table row from my app lication using unique id. when I am using the command [...] about Nermalisation Sat, 05.07.2008 16:08 The point is that you have the option to not do, but then yo u'll be in a world of pain. Th e point is also to show [...] about Nermalisation Fri, 04.07.2008 15:40 Nice little article, and I lik e how you've used cats in your examples :) I am a little unclear what the point h [...] about Salmiakki - the official MySQL Drink Sun, 08.06.2008 11:34 150g of liquorice are enough t o get the original Salmiakki t aste.... you can add some more , anyway about phpvikinger.org: Things that have no name Sun, 11.05.2008 06:34 In reply to "stuff with no nam es":very informative and succi nct. I am retired and need to learn to build a website [...] about What is the difference between MySQL and Postgres? Wed, 30.04.2008 14:08 what is the difference between MySql and PostgreSql? about Fortune Cookie Wed, 09.04.2008 21:46 What a random fortune, who kno ws what it means. My favorite random fortune cookie note rea ds "you will make a good [...] Categories
Blog AdministrationDisclaimerAll examples, code-snippets, advice, trivia, etc. are supplied in the hope that they are useful, but no warranty of any kind is given. Use of trademarks is not intended as a challenge to them.
ImpressumCopyright 2005-2007 bei den jeweiligen Autorinnen der Beiträge. Die Infrastruktur von MySQL-dump wird betrieben von:
Azundris, Immanuelkirchstraße 18, 710405 Berlin, Germany
|
Eine Einführung in die Normalisierung von Datenbanken, die kein Vorwissen voraussetzt und Katzencontent liefert. ASCII version, English versionStark vereinfacht geht es bei Normalisierung um Flexibilität und Redundanzvermeidung. Gegeben seien Katzen u
Tracked: Sep 12, 00:21
Relational Database Management Systems (RDBMSs) use special forms to keep data from being kept redundant: normalized tables. If you’re like me, you haven’t memorized or completely understood normalization up to now. If you do, however, wan...
Tracked: Nov 28, 15:35
In Five Common PHP database problems, Jack Herrington writes about five common database problems that occur in PHP applications -- including database schema design, database access, and the business logic code that uses the database -- as well as their s
Tracked: Aug 11, 12:40