def get_sql_select_all_fields_by_key(
        table: str,
        fieldlist: Sequence[str],
        keyname: str,
        delims: Tuple[str, str] = ("", "")) -> str:
    """Returns SQL:
        SELECT [all fields in the fieldlist] WHERE [keyname] = ?
    """
    return (
        "SELECT " +
        ",".join([delimit(x, delims) for x in fieldlist]) +
        " FROM " + delimit(table, delims) +
        " WHERE " + delimit(keyname, delims) + "=?"
    )