Re: where is the mistake in this SQL statement?

2005-11-15 Thread Joerg Bruehe
Hi all, Peter! Sujay Koduri wrote: You havent specified the datatype for the column 'id'. Right, this should be fatal. But I also take issue with other parts: [[...]] -Original Message- From: Peter Matulis [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 10:57 AM

Re: where is the mistake in this SQL statement?

2005-11-15 Thread Harald Fuchs
In article [EMAIL PROTECTED], Joerg Bruehe [EMAIL PROTECTED] writes: CREATE TABLE users ( id PRIMARY KEY, priority integer NOT NULL DEFAULT '7', policy_id integer unsigned NOT NULL DEFAULT '1', Even though this may work, it is wrong IMNSHO: You set character strings as default values for

Re: where is the mistake in this SQL statement?

2005-11-15 Thread Jasper Bryant-Greene
Harald Fuchs wrote: In article [EMAIL PROTECTED], Joerg Bruehe [EMAIL PROTECTED] writes: CREATE TABLE users ( id PRIMARY KEY, priority integer NOT NULL DEFAULT '7', policy_id integer unsigned NOT NULL DEFAULT '1', Even though this may work, it is wrong IMNSHO: You set character strings as

Re: where is the mistake in this SQL statement?

2005-11-15 Thread Peter Matulis
--- Joerg Bruehe [EMAIL PROTECTED] wrote: Sujay Koduri wrote: You havent specified the datatype for the column 'id'. Right, this should be fatal. But I also take issue with other parts: CREATE TABLE users ( id PRIMARY KEY, priority integer NOT NULL DEFAULT '7',

Re: where is the mistake in this SQL statement?

2005-11-15 Thread Joerg Bruehe
Hi Peter, all! Peter Matulis wrote: --- Joerg Bruehe [EMAIL PROTECTED] wrote: [[...]] CREATE TABLE users ( id PRIMARY KEY, priority integer NOT NULL DEFAULT '7', policy_id integer unsigned NOT NULL DEFAULT '1', Even though this may work, it is wrong IMNSHO: You set character strings

RE: where is the mistake in this SQL statement?

2005-11-14 Thread Sujay Koduri
You havent specified the datatype for the column 'id'. sujay -Original Message- From: Peter Matulis [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 15, 2005 10:57 AM To: mysql@lists.mysql.com Subject: where is the mistake in this SQL statement? { this is a resend, forgot subject in