VS Code: Importing CSV files to make a SQLite Database

preview_player
Показать описание
In this video we use VS Code with two SQLite extensions to import a CSV (comma separated values) file to create a table in a database. The first row of the CSV file was the names of the columns in the database table. As is normal when a file is parsed, the types are assumed to be Text. However, we can change the types, say to INTEGER or DECIMAL, and even add roles such as making a column the PRIMARY KEY or indicate that it REFERENCES another column in another table (that is, makes it a foreign key). We wrote a few queries. We exported the results of one of the queries as CSV. And we ended with exporting one of the tables as a JSON (JavaScript Object Notation) file.
Рекомендации по теме
Комментарии
Автор

Thank you for this video, which is very helpful!

dianakao
Автор

thank you for this video, as a beginner i was looking exclusively for using CSV importing to play around with my SQL learning instead of the unlimited supply of connecting to a database tutorials that's all over the place, thanks to your video I can finally play around with my own csv files.

mindlessdeveloper
Автор

Thank you for showing this. As a relative beginner, I'd like to ask what is the advantage of doing this work in VS Code instead of a dedicated SQL editor like MySQL Workbench or Navicat?

jasongins
join shbcf.ru