Reading from the database

The database query for reading all records from the database is as follows:

query = 'SELECT * FROM contacts ORDER BY name desc'
phone_book_entries = self.execute_db_query(query)

The preceding variable, phone_book_entries, contains a list of all the records from the database.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.0.145