def sqldelete(table, where):
validate_name(table)<EOL>(whereclause, wherevalues) = sqlwhere(where)<EOL>sql = "<STR_LIT>".format(table)<EOL>if whereclause:<EOL><INDENT>sql += "<STR_LIT>" + whereclause<EOL><DEDENT>return (sql, wherevalues)<EOL>
Generates SQL delete from ... where ...

    >>> sqldelete('t', {'id': 5})
    ('delete from t where id=%s', [5])