cmc-csci040 icon indicating copy to clipboard operation
cmc-csci040 copied to clipboard

SQL

Open jsilva22 opened this issue 4 years ago • 3 comments

Hey Mike quick question, for some reason sqlfiddle isn't loading for me. Is there another way to check our practice quizzes?

jsilva22 avatar Dec 01 '21 06:12 jsilva22

Yes, you can use the db_create.py file to create a SQL database, then the sqlite3 executable to run a problem's commands and view the output.

You'll need to be careful to delete the database and recreate it after running any update/insert/delete commands, however, since those will permanently modify the database in sqlite3 (but they don't permanently modify it on sqlfiddle.com).

mikeizbicki avatar Dec 01 '21 06:12 mikeizbicki

Understood thank you! I also tried going to the link you provided to download sqlite3 but I don't see any kind of download, it seems to just be a command we run. Is this correct or is there something we have to download from the download website?

jsilva22 avatar Dec 01 '21 06:12 jsilva22

Yes to what Mike said, but also, there's an easy online alternative to SQLFiddle: DB Fiddle! Make sure you set it up for sqlite rather than mysql :)

yeswetran avatar Dec 01 '21 06:12 yeswetran