Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Primary Key – Case Sensitive

forums forums SQLyog Using SQLyog Primary Key – Case Sensitive

  • This topic is empty.
Viewing 0 reply threads
  • Author
    Posts
    • #11715
      AlanT
      Member

      I have defined a table with primary key of 1 character:

      CREATE TABLE `itemtype` (

      `ItemTypeCode` CHAR(1) NOT NULL,

      `ItemTypeName` VARCHAR(50) NOT NULL,

      PRIMARY KEY (`ItemTypeCode`)

      ) ENGINE=INNODB DEFAULT CHARSET=latin1;

      INSERT INTO `itemtype`(`ItemTypeCode`,`ItemTypeName`) VALUES ('A','Normal'),('B','Bonus'),('D','Discounted');

      I would like to add a record:

      'a', 'allocated'

      However, sqlYog did not allow me as duplicate key:

      Duplicate entry 'a' for key 'PRIMARY'

      Any way I can make it case sensitive for the primary key column?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.