When try to load database(chinook.db) on local machine in jupyter notebook , not able to load the same.
See attached screenshot of my code.
Pls help to resolve issue.
thanks in advance…
Umesh
When try to load database(chinook.db) on local machine in jupyter notebook , not able to load the same.
See attached screenshot of my code.
Pls help to resolve issue.
thanks in advance…
Umesh
I got the solution.
this works %sql sqlite:////Users/umesh/Downloads/chinook.db instead of %sql sqlite:////chinook.db
thanks
Hi @exports,
Either you have to use the absolute path of the database file or place the file in the same folder as the notebook file and use the relative path. For easiness, let’s place them in the same folder.
chinook.db
in that folderAfter that try running these:
%%capture
%load_ext sql
%sql sqlite:///chinook.db
%%sql
SELECT
name
FROM
sqlite_master
WHERE
type='table'
Best,
Sahil
What a timing! you found the solution when I was typing it
thanks a lot
This did not work. Instead it overwrites the existing database with a blank database. What can I do to fix this?