예제 #1
0
 def remove_row(table_name, conditions):
     """creates a delete SQL query using the parameters
         input: table name: string with table name
                 conditions: list of lists containing the conditions to remove rows
         """
     if not table_name:
         return None
     query = "DELETE FROM " + table_name
     where = DbQueries.condition_creator(conditions)
     if where is not None:
         query += "  WHERE " + where
     query + "; "
     return query