I see your point. I will probably use -1 as 'NOT APPLICABLE' (being more appropriate than NULL). I still find it strange that I can't use NULL values though...
I have just checked my installation and I have 4.0.1-alpha. Here's the version string provided by MySql...
mysql Ver 11.19 Distrib 4.0.1-alpha, for Win95/Win98 (i32)
This version should be okay shouldn't it? I have just tried creating some test tables to test what you said, but it still...
Is it possible to have optional relationships in mySQL? I have a table that stores jobs carried out by engineers and uses foreign keys to link to the different types of job that they may do. Here is the table:
CREATE TABLE job(
job_id INT AUTO_INCREMENT...
Hi all,
I am trying to create a database table that will act like a linked list by using self referencing. I have used the following definitions:
CREATE TABLE partslist(
id INT AUTO_INCREMENT,
PRIMARY KEY(id),
partid INT NOT NULL,
INDEX...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.