I have 2000 data and all assign number is: 0000-1111 and needs to update by company c.
id | fullname | company | assign_num
1 sample1 company1 0000-1111
2 sample2 company2 0000-1111
3 sample3 company2 0000-1111
4 sample4 company1 0000-1111
5 sample5 company1 0000-1111
the assign_num is given.
how to UPDATE row by COMPANY? (ex. company 1)
ex.
0000-1112, 0000-1501, 0000-1120
result will be like this:
id | fullname | company | assign_num
1 sample1 company1 0000-1112
2 sample2 company2 0000-1111
3 sample3 company2 0000-1111
4 sample4 company1 0000-1501
5 sample5 company1 0000-1120
I can do I manually or find the id if its only 100+ record but its a thousand records to update.