Announcement

Collapse
No announcement yet.

Syntax Erro MySQL 4 bei ADD Boolean

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Syntax Erro MySQL 4 bei ADD Boolean

    Hi,

    Meine Tabelle MyTable hat den Attribut PId als INT.

    Ich möchte folgendes ausführen:

    ALTER TABLE `MyTable` ADD `BoolParam` boolean NOT NULL DEFAULT FALSE AFTER `PId` ;

    liefert Fehler:
    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 'boolean NOT NULL DEFAULT FALSE AFTER `LastModified`' at line 1
    Query OK, 1 row affected (0.00 sec)

    Vielen Dank im Voraus!!

  • #2
    Hallo,

    welche Serverversion verwendest du genau?
    Originally posted by MySQL-Handbuch
    BOOL, BOOLEAN

    These types are synonyms for TINYINT(1). The synonym BOOLEAN was added in MySQL 4.1.0.
    Gruß Falk
    Wenn du denkst du hast alle Bugs gefunden, dann ist das ein Bug in deiner Denksoftware.

    Quellcode ohne ein Mindestmaß an Formatierung sehe ich mir nicht an! Ich leiste keinen Privatsupport per Mail oder PN!

    Comment

    Working...
    X