Jump to content

Updat error

Recommended Posts

Dear all,

I am trying to update the value of column "action_code" in table "rma" to value HW

     UPDATE rma 

     SET action_code = 'HW'

     WHERE id between 473576 AND 473621;

However it returns this error: 

Msg 512, Level 16, State 1, Procedure MODIFY_ESC, Line 5
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

I am able to edit one value at a time. The below query is also able to select the rows in question:

      SELECT *
      FROM rma
      WHERE ID BETWEEN 473576 AND 473621;

What am I doing wrong?

Thanks in advance!




Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...