Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Posts
    3

    Unanswered: Inner Query Problem

    hi friends,

    I want to write a query like this

    update organisation
    set tandctext = (Select tandctext from organisation where nodeid=144)
    where nodeid=5555;

    but i am getting an error..please friends can u help regarding this issue in
    Mysql4.0.26 and MySql5.0 versions please.


    waiting for ur replies

    Bye...

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    either do it in two steps, or use a multi-table update query with a join (examples on the mysql.com site under the UPDATE syntax)
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •