How to make class to add new products in database ? | Sololearn: Learn to code for FREE!
0

How to make class to add new products in database ?

27th Jun 2020, 11:15 AM
‎‏â€ȘYazeed Alyazeedi ‬‏‎
‎‏â€ȘYazeed Alyazeedi ‬‏‎ - avatar
3 RĂ©ponses
+ 5
A good way to start doing this is by using sqlite3. It is a Python module which enables you to connect to SQLite databases and manipulate them by using normal SQL syntax within Python. CHECK THIS OUT: https://code.sololearn.com/csyhsIovmZJ3/?ref=app (the code above links to :memory: but it can link to a respective .db file)
27th Jun 2020, 11:46 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 6
Could you please be more specific? Do you want to create an SQL database and manipulate it with Python?
27th Jun 2020, 11:16 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
Yes
27th Jun 2020, 11:18 AM
‎‏â€ȘYazeed Alyazeedi ‬‏‎
‎‏â€ȘYazeed Alyazeedi ‬‏‎ - avatar