SQL-Update-Statement

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Freitag

    #1

    SQL-Update-Statement

    Hello!
    I have a litte problem with my sql-database!
    I have to update all UA-fields in the table idrz_kennzahl with primary
    key idrz, where the same idrz in the table per_verwaltung with the
    field Amt=12 is.

    I designed following statement but it doesn't work:

    update idrz_kennzahl
    set UA=1234
    where
    idrz_kennzahl.i drz =
    (SELECT per_verwaltung. idrz from per_verwaltung where
    per_verwaltung. Amt=12)


    Does anybody has an idea for my prob - sorry i'm an mysql-newbie!

    Thanks,
    Christian
Working...