A parameterized SQL statement is used to insert a row into the Inventory table by passing the name_input string variable to the ItemName column and the price_input float variable to the Price column.
Employablity presentation and Future Career Plan.pptx
Add row to Inventory table using parameterized SQL
1. Assume cur is a Cursor object, the variable name_input references a string and the variable
price_input references a float. Write a complete Python statement that uses a parameterized SQL
statement to add a row to the Inventory table in which the value of the name_input variable is
inserted in the ItemName column and the value of the price_input variable is inserted in the Price
column.