I have 2 tables A and B. In table A I have a char column and integer column for many2one(ID) of column B.
In table B I have same char column.
Now i have to compare char columns of both tables and update the respecting ID of table B to table A.
Table A
| Name | ID of B |
|------|---------|
| ABC | |
| BCD | |
| CDF | |
Table B
| ID | Name |
|----|------|
| 1 | CDF |
| 2 | ABC |
| 3 | BCD |
How to do this in UPDATE query, if not possible how to do that in INSERT query for whole table. Im having 100s of record in table.