35.0k views
4 votes
You get an error when trying to insert a record into a table from a Python script. A possible reason for this could be:

a

Malformed insert statement

b

Failure to connect to the database

c

No permission to insert into the table

d

All of these

1 Answer

3 votes

Answer:

d) All of these.

Step-by-step explanation:

When we get an error in inserting a record in table using python script.There could be several reason for that which are as following:-

  1. The insert statement in python can be not well formed.
  2. You don't have the permission to insert data in the table.
  3. Python is not able to connect to the database.

So all of the above written reasons are mentioned in the question hence the answer is option d.

User Leonard Punt
by
5.3k points