Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have two tables. One of them has three columns "word", "count", and "value". The second one has two columns "word" and "value". In the second table, every field of the value column has an attached integer value. In the first table, the "value" column is empty or with placeholder values.

I want to import the values of the second table column "value" into the first table column "value" by matching the "word" column.

For a single row, the command would be something like

SQL
update table1 set 'value' = "valuefromTable2" where 'word' = "matchingWordFromTable2";


Since I have around 200k rows to update, I would rather use a potential SQLite feature (merge?)than a piece of code doing the work row by row. Do you know how to achieve that?

Thanks!
Posted
Updated 27-Jul-14 3:51am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900