How does database work?! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How does database work?!

I’m start working with database and recently i’m writing an accounting program with python. I need to use database in my program but as offline, not depending on a server. So anybody can help me with databases?!😣😫 In addition i’m heard about access but my OS is mac and unfortunately I can’t use that program. I need somebody who know about databases🙄🙏🏻

28th Oct 2019, 3:10 PM
Vahid.VMB
Vahid.VMB - avatar
6 Answers
+ 2
These are fun, and since you'll need to learn SQL, why not make it fun 😊 SQL Murder Mystery http://mystery.knightlab.com/walkthrough.html Here's the online version: https://sql-murder-mystery.datasette.io/sql-murder-mystery
28th Oct 2019, 3:18 PM
will
will - avatar
+ 1
will and i don’t want to put database in online host server
28th Oct 2019, 5:05 PM
Vahid.VMB
Vahid.VMB - avatar
+ 1
Gotcha, there must have been a miscommunication, from what I understand it'll help to know SQL when working with databases, if you don't already know SQL, the resource I shared was simply a nudge along that learning path, based on my personal experience learning SQL. Here's what Google has to say about using SQLite with python: https://www.sqlitetutorial.net/sqlite-python/ Best of luck 👍
28th Oct 2019, 5:25 PM
will
will - avatar
0
thanks, i hope this will be helpful🙏🏻 but i search way to put database on my program dir not connect it to server because when i run program in different OS my database will not be there and program will crash☹️
28th Oct 2019, 5:03 PM
Vahid.VMB
Vahid.VMB - avatar
0
Vahid.VMB If you run your python program in another os/system A new db will be created in that os.and all the data which will be created will be stored in that database.
29th Oct 2019, 8:58 PM
Preyas
Preyas - avatar
0
Vahid.VMB if you use sqlite, it does a database locally in a file. no internet or network needed. you can code your app/program to check if a database file is available, if none is available, you can create a file and build the sqlite database tables from scratch and then your app can use it.
30th Oct 2019, 7:31 AM
Nathan Stanley
Nathan Stanley - avatar