This is the code:
UPDATE PESSOAS
SET COR = ('Pardo')
WHERE ID = 1;
But I have 2 more records to do the same procedure, would you do it all at once by adding ID
?
This is the code:
UPDATE PESSOAS
SET COR = ('Pardo')
WHERE ID = 1;
But I have 2 more records to do the same procedure, would you do it all at once by adding ID
?
Just say the WHERE
clause you want to do in several, you could use OR
to select multiple ID
s, but I think in this case it is more appropriate to use IN()
.
UPDATE PESSOAS
SET COR = ('Pardo')
WHERE ID IN (1, 2, 3);