I have 2 tables. Table A :
Col_a | Col_b
--------------
abc | [null]
def | [null]
Table B :
Col_c | Col_d
-------------
abc | 123
def | 456
How can I insert Col_d from Table B to Col_b on Table A? Here's what I've tried :
INSERT INTO Table_A (Col_b) SELECT Col_d FROM Table_B
WHERE Col.c = (SELECT Col_a FROM Table_A);
The WHERE conditions doesn't seem can be used that way. Any idea?