Announcement

Collapse
No announcement yet.

Wo liegt mein Fehler??

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

  • Wo liegt mein Fehler??

    Hi Leute,

    ich habe folgendes Problem: ich will die Inhalte eines Feldes aus Tabelle a ind Tabelle b übertragen mit folgendem Befehl.


    UPDATE i_tbl_artikel SET int_gruppe = ( SELECT i_tbl_frame.int_gruppe
    FROM i_tbl_frame
    WHERE i_tbl_frame.int_index = i_tbl_artikel.int_index )

    Leider bekomme ich nur die Fehlermeldeung

    #1064 - 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 'SELECT i_tbl_frame.int_gruppe FROM i_tbl_frame WHERE i_tbl_fram


    könnt ihr mir helfen???

    Danke im Vorraus

  • #2
    Versuchs mal mit

    SET i_tbl_artikel .int_gruppe

    Gruß
    docendo discimus

    Comment


    • #3
      Hallo,

      ist deine MySQL-Version < 4.01?

      Subqueries werden von MySQL erst ab 4.01 unterstützt! Davor nur in den Varianten INSERT ... SELECT ... and REPLACE ... SELECT ... .

      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