I want to add values to a new column I added to a table. I need to update about 80 rows and found an answer here that used a similar format as I tried:
Update table_name
set column_name = 'G'
where item_id in (6,7,12,15,16,17,22,24,134,166...etc)
column_name is CHAR(10) and item_id is an INT
I am getting an error:
`Subquery returned more than 1 value. This is illegal when the subquery follows =, !=, <, <= , >, >=, or when the subquery is used as an expression.'
I tried just using a set of 3 values and got the same error. I am too new at it to know why this doesn’t work.
It does work one at a time, but I’d rather not 🙂
Since
is your query, I can state that you have a trigger that runs whenever you do an update on table_name.
Your query won’t give the error that you stated, so a query inside the trigger must be the problem!