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
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
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
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
>
=
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
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
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
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
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
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
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)
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
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
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'
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
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
16 matches
Mail list logo