UPDATE domain_information
SET company_name = 'aaa'
where id in (select id from domain_information where company_name = 'bbb')
Asked
Active
Viewed 35 times
-5

jarlh
- 42,561
- 8
- 45
- 63

Deekshith Shetty
- 91
- 11
-
4And the question is? – jarlh Nov 21 '16 at 10:12
1 Answers
0
Your WHERE
condition can be simplified like
UPDATE domain_information
SET company_name = 'aaa'
WHERE company_name = 'bbb';

Rahul
- 76,197
- 13
- 71
- 125
-
-
@jarlh, Yes, that's a implicit assumption that the id OP referring to in post is primary key of the table. – Rahul Nov 21 '16 at 10:21