Re: error creating table

2009-12-01 Thread Sharique uddin Ahmed Farooqui
Sharique uddin Ahmed Farooqui < > saf...@gmail.com> wrote: > >> Hi, >> I'm developing a CMS, in which I have 3 tables user, roles and userRoles. >> Here is the code for userRoles table. on this I'm getting error >> creating table (error code 1005), both us

Re: error creating table

2009-11-30 Thread Jim Lyons
your keys and make sure they match. On Mon, Nov 30, 2009 at 11:50 AM, Sharique uddin Ahmed Farooqui < saf...@gmail.com> wrote: > Hi, > I'm developing a CMS, in which I have 3 tables user, roles and userRoles. > Here is the code for userRoles table. on this I'm getting erro

error creating table

2009-11-30 Thread Sharique uddin Ahmed Farooqui
Hi, I'm developing a CMS, in which I have 3 tables user, roles and userRoles. Here is the code for userRoles table. on this I'm getting error creating table (error code 1005), both userid and roleid are pkey (int, auto increment) CREATE TABLE IF NOT EXISTS `mydb`.`UserRole` ( `role

Re: error creating table

2009-10-05 Thread Sharique uddin Ahmed Farooqui
gt; -> COLLATE=utf8_general_ci > -> ENGINE=InnoDB > -> ROW_FORMAT=COMPACT > -> AVG_ROW_LENGTH=0; > Query OK, 0 rows affected (0.08 sec) > > mysql> > > == > > > > best regards >

RE: error creating table

2009-10-04 Thread LIU YAN
= best regards liuyann > Date: Sun, 4 Oct 2009 23:47:54 +0530 > Subject: error creating table > From: saf...@gmail.com > To: mysql@lists.mysql.com > > Hi, > I'm trying to create a table with 2 columns both are primary key > (combined) and both

RE: error creating table

2009-10-04 Thread John
From: Sharique uddin Ahmed Farooqui [mailto:saf...@gmail.com] Sent: 04 October 2009 19:18 To: mysql Subject: error creating table Hi, I'm trying to create a table with 2 columns both are primary key (combined) and both are foreign key as well. I'm getting error cannot create table. Here is t

error creating table

2009-10-04 Thread Sharique uddin Ahmed Farooqui
Hi, I'm trying to create a table with 2 columns both are primary key (combined) and both are foreign key as well. I'm getting error cannot create table. Here is the sql CREATE TABLE `userroles` ( `roleid` INT(10) UNSIGNED NOT NULL DEFAULT '0', `userid` INT(10) UNSIGNED NOT NULL DEF

error creating table

2008-06-11 Thread Sharique uddin Ahmed Farooqui
Hi, I'm trying to create a table with 2 foreign keys from two tables, but it not workin here is the query ( i have generated this query from mysql workbench) -- CREATE TABLE IF NOT EXISTS `menutest`.`role_perm` ( `idrole` INT NOT NULL , `permid` VARCHAR(45) NOT NULL , `status` BOOLEAN NOT N

Re: parse error creating table

2005-12-04 Thread Peter Brawley
Hi Ferindo >The intended effect is to get a timestamp field that inserts the current system >time on inserts and continues to update the field with the current timestamp >on updates without the application or use needing to specify it are you >saying that the timestamp attribute alone wil

Re: parse error creating table

2005-12-04 Thread Ferindo Middleton Jr
Thanks Peter. I did originally use this table in a Postgresql db. Thanks for you advice. Your suggestions below allowed me to create this table and I learned a thing t two about proper usage of the TIMESTAMP data type. The intended effect is to get a timestamp field that inserts the current sys

Re: parse error creating table

2005-12-04 Thread Peter Brawley
Ferindo One problem is: employment_status_id INTEGER REFERENCES employment_statuses(id) NOT NULL, NOT NULL should be before REFERENCES. Also, in: last_updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, (i) NOT NULL is superfluous since the default is given by CURRENT_TIMESTAMP. (ii)

parse error creating table

2005-12-04 Thread Ferindo Middleton Jr
I have been trying to create a table but mysql 5.0.15-nt-max is having a problem parsing the statement. Anyone know what the problem is in the syntax of the following table creation statement: CREATE TABLE registration_and_attendance ( idSERIAL NOT NU

RE: Error creating table in MySQL 5.0

2004-05-10 Thread Victor Pendleton
Have you verified the syntax from the MySQL command line? -Original Message- From: Marvin Cummings To: [EMAIL PROTECTED] Sent: 5/9/04 7:26 PM Subject: Error creating table in MySQL 5.0 Wondering if anyone can give me some help with this error I'm getting when trying to create this

Re: Error creating table in MySQL 5.0

2004-05-09 Thread Peter Brawley
If a column is auto_increment it can't be DEFAULT 0. PB - Original Message - From: Marvin Cummings To: [EMAIL PROTECTED] Sent: Sunday, May 09, 2004 7:26 PM Subject: Error creating table in MySQL 5.0 Wondering if anyone can give me some help with this error I'

Error creating table in MySQL 5.0

2004-05-09 Thread Marvin Cummings
Wondering if anyone can give me some help with this error I'm getting when trying to create this table: ERROR 1064 (42000): You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '$sql = "CREATE TABLE $subdivtab

InnoDB: Error creating table

2002-04-04 Thread Ang Ho Keat
Encounter the following error in MyCC: [root@localhost:3306]ERROR 1005: Can't create table '.\abc\def.frm' (errno 121) I'm using MySQL 3.23.49 and Win98se. The statement I used work on the default MYISAM table and DBD table and I did changed the TYPE=InnoDB in the CREATE statement. The following