Is there a faster way to add new column data with hundreds of rows?

Viewed 96

I have a decent-sized table 'countries' with about 10 columns. I recently added a new column to the table 'GDP' and I am entering the information per row using

UPDATE countries
SET GDP=(value)
WHERE name = (country);

I have 200 countries in this table. Is there a better way to update this information?

This project is from Khan Academy. We are asked to select a database and run queries on it. The data was pulled from https://gist.github.com/pamelafox/ad4f6abbaac0a48aa781

I am just making sure that there isn't a more efficient way of adding this information to the existing table 'countries' where the primary key is the name of the country.

0 Answers
Related