Skip to main content
se añadieron 166 caracteres en el cuerpo
Origen Enlace
UselesssCat
  • 3.2k
  • 1
  • 21
  • 44

Buenas tardes,

tengo un problemilla creando tablas con PhpMyadmin mi sentencia es esta:

CREATE TABLE prensacarv1.pr_clients ( clientId INT(10) NOT NULL AUTO_INCREMENT , firstName VARCHAR(45) NOT NULL , lastName VARCHAR(45) NOT NULL , netProfit INT(3) NOT NULL , address TEXT NOT NULL , locality INT(10) NOT NULL , postalCode VARCHAR(45) NOT NULL , province INT(10) NOT NULL , country VARCHAR(255) NOT NULL , coordinates POINT NOT NULL , latitude VARCHAR(45) NOT NULL , longitude VARCHAR(45) NOT NULL , email VARCHAR(45) NOT NULL , comment TEXT NOT NULL , userId INT(10) NOT NULL , created DATETIME NOT NULL , modified DATETIME NOT NULL , active TINYINT(1) NOT NULL , PRIMARY KEY (clientId(10))) ENGINE = InnoDB;

CREATE TABLE `prensacarv1`.`pr_clients` (
    `clientId` INT(10) NOT NULL AUTO_INCREMENT,
    `firstName` VARCHAR(45) NOT NULL,
    `lastName` VARCHAR(45) NOT NULL,
    `netProfit` INT(3) NOT NULL,
    `address` TEXT NOT NULL,
    `locality` INT(10) NOT NULL,
    `postalCode` VARCHAR(45) NOT NULL,
    `province` INT(10) NOT NULL,
    `country` VARCHAR(255) NOT NULL,
    `coordinates` POINT NOT NULL,
    `latitude` VARCHAR(45) NOT NULL,
    `longitude` VARCHAR(45) NOT NULL,
    `email` VARCHAR(45) NOT NULL,
    `comment` TEXT NOT NULL,
    `userId` INT(10) NOT NULL,
    `created` DATETIME NOT NULL,
    `modified` DATETIME NOT NULL,
    `active` TINYINT(1) NOT NULL,
    PRIMARY KEY (`clientId` (10))
)  ENGINE=INNODB;

y al pulsar Guardar me aparece el siguiente mensaje de error:

#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn support unique prefiex keys

#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn support unique prefiex keys

¿Alguien sabe que está ocurriendo?

Buenas tardes,

tengo un problemilla creando tablas con PhpMyadmin mi sentencia es esta:

CREATE TABLE prensacarv1.pr_clients ( clientId INT(10) NOT NULL AUTO_INCREMENT , firstName VARCHAR(45) NOT NULL , lastName VARCHAR(45) NOT NULL , netProfit INT(3) NOT NULL , address TEXT NOT NULL , locality INT(10) NOT NULL , postalCode VARCHAR(45) NOT NULL , province INT(10) NOT NULL , country VARCHAR(255) NOT NULL , coordinates POINT NOT NULL , latitude VARCHAR(45) NOT NULL , longitude VARCHAR(45) NOT NULL , email VARCHAR(45) NOT NULL , comment TEXT NOT NULL , userId INT(10) NOT NULL , created DATETIME NOT NULL , modified DATETIME NOT NULL , active TINYINT(1) NOT NULL , PRIMARY KEY (clientId(10))) ENGINE = InnoDB;

y al pulsar Guardar me aparece el siguiente mensaje de error:

#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn support unique prefiex keys

¿Alguien sabe que está ocurriendo?

Buenas tardes,

tengo un problemilla creando tablas con PhpMyadmin mi sentencia es esta:

CREATE TABLE `prensacarv1`.`pr_clients` (
    `clientId` INT(10) NOT NULL AUTO_INCREMENT,
    `firstName` VARCHAR(45) NOT NULL,
    `lastName` VARCHAR(45) NOT NULL,
    `netProfit` INT(3) NOT NULL,
    `address` TEXT NOT NULL,
    `locality` INT(10) NOT NULL,
    `postalCode` VARCHAR(45) NOT NULL,
    `province` INT(10) NOT NULL,
    `country` VARCHAR(255) NOT NULL,
    `coordinates` POINT NOT NULL,
    `latitude` VARCHAR(45) NOT NULL,
    `longitude` VARCHAR(45) NOT NULL,
    `email` VARCHAR(45) NOT NULL,
    `comment` TEXT NOT NULL,
    `userId` INT(10) NOT NULL,
    `created` DATETIME NOT NULL,
    `modified` DATETIME NOT NULL,
    `active` TINYINT(1) NOT NULL,
    PRIMARY KEY (`clientId` (10))
)  ENGINE=INNODB;

y al pulsar Guardar me aparece el siguiente mensaje de error:

#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn support unique prefiex keys

¿Alguien sabe que está ocurriendo?

Origen Enlace
Korzan
  • 177
  • 1
  • 2
  • 13

Problema al crear tablas Mysql con PhpMyadmin

Buenas tardes,

tengo un problemilla creando tablas con PhpMyadmin mi sentencia es esta:

CREATE TABLE prensacarv1.pr_clients ( clientId INT(10) NOT NULL AUTO_INCREMENT , firstName VARCHAR(45) NOT NULL , lastName VARCHAR(45) NOT NULL , netProfit INT(3) NOT NULL , address TEXT NOT NULL , locality INT(10) NOT NULL , postalCode VARCHAR(45) NOT NULL , province INT(10) NOT NULL , country VARCHAR(255) NOT NULL , coordinates POINT NOT NULL , latitude VARCHAR(45) NOT NULL , longitude VARCHAR(45) NOT NULL , email VARCHAR(45) NOT NULL , comment TEXT NOT NULL , userId INT(10) NOT NULL , created DATETIME NOT NULL , modified DATETIME NOT NULL , active TINYINT(1) NOT NULL , PRIMARY KEY (clientId(10))) ENGINE = InnoDB;

y al pulsar Guardar me aparece el siguiente mensaje de error:

#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn support unique prefiex keys

¿Alguien sabe que está ocurriendo?