I'm trying to update a single column in multiple rows by appending the string '999':
UPDATE integration.ol_orders
SET order_id = ((SELECT order_id
FROM integration.ol_orders
WHERE status = 2) || '999')
WHERE status = 2
but for whatever reason, I keep getting the error of "ORA-01427: single-row subquery returns more than one row tips".
So, as I iterate my n rows, I'm trying to do:
a1 = a1 || '999'
a2 = a2 || '999'
a3 = a3 || '999'
an = an || '999'
Any suggestions how to go about this?
edit: changed '+' to '||', still no luck
SELECT order_id FROM integration.ol_orders WHERE status = 2) and see how many rows are returned.+isn't how you concatenate in oracle its||.