Post Query to Database Function
Goal
The goal is to create a function that takes in as an argument a string consisting of an SQL query and posts it to the DB. If possible the function should verify if the post was successful and return True or False if applicable.
Arguments
- SQL Query String: The SQL query to be posted to the database.
Returns
- Boolean: Returns
True or False indicating the success or failure, respectively, of posting the SQL query to the database.
Function Name: postQueryToDB
Post Query to Database Function
Goal
The goal is to create a function that takes in as an argument a string consisting of an SQL query and posts it to the DB. If possible the function should verify if the post was successful and return
TrueorFalseif applicable.Arguments
Returns
TrueorFalseindicating the success or failure, respectively, of posting the SQL query to the database.Function Name:
postQueryToDB