Master Using SQL with Python: Lesson 11 - Using JSON with SQLite

preview_player
Показать описание
In this video, you will learn how to create, store, and retrieve JSON objects using Python and SQLite. JSON is a very popular way to share data and SQLite has powerful features to store and query JSON. In this video, I'll show you how to get data from a website in JSON format, store it in a SQLite table, retrieve the JSON, and perform queries on it.

Slides and Code available at:

Download and Unzip the file.

My video on installing and using SQLite Studio
Рекомендации по теме
Комментарии
Автор

Definitely would like more videos working with both JSON and REGEX in SQL

lglexrs
Автор

Thanks for making this video, Bryan. It's the clearest example of working with JSON in SQLite using Python I've seen! Much appreciated!

danmisener
Автор

i definitely like to see more about the json usage in sqlite/postgres with python. especially using twitter api v2. thanks for the series. it really helps. best.

notterboutuyer
Автор

Thank you very much. Your explanations are very good

OrigamOx
Автор

Thanks Bryan! Add my vote to doing more sessions with Python/JSON --> into SQL Server, SQLite, & even Snowflake if you have the time!!! Thanks again for your great series!

michaeleidson
Автор

i get this issue when i try the panda lib
Execution failed on sql '
select json_extract(data, '$.id') as id,
order by id,
limit 5;': near "order": syntax error

izthed
Автор

Would these efforts be this straightforward using JavaScript?

Imaginativeone_DF
Автор

Hi. Thanks for your great content.

I use sqlite3 version 3.34 with python 3.8.

I get error when using json extract:
cursor.execute('''select json_extract(data, '$.name', '$.iso2Code', '$.id') from countries;''').fetchmany(8)

OperationalError: no such function: json_extract

SAliGhasempouri
Автор

thank you. How can we json_extract a nested variable?

jiweihe
Автор

Why I'm getting "OperationalError: no such function: json_extract
" without doing anything on the code! Getting mad:)

paolorussi