![]() ![]() We just need to use the commit() method of the connection object before disconnecting with the database else the changes we made will not be saved into the database. We have to use the columns name of the employee table in the first parenthesis and the data for the columns in the second parenthesis. In the lines from six to ten, we have to use the INSERT command of SQL to insert data into the employee table. The first five lines are used to create a connection with the database and setting up the cursor. Anonymous, terdon terminated the -exec with +: 'This variant of the -exec action runs the specified command on the selected files, but the command line is built by appending each selected file name at the end the total number of invocations of the command will be much less than the number of matched files.' from man find. The above code will insert some data into the employee table we have created earlier. Print("\n The Data has been inserted Successfully ") Print("\n Successfully connected to the database") Everything you should know about Python’s PIP and PyPi import sqlite3.Extracting Linux System and Hardware Info Using Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |