|
|
@ -654,6 +654,8 @@ async def generate_sql(tablesRowCol:dict, table_columns:dict): |
|
|
where_conditions = " AND ".join(select_rows.values()) |
|
|
where_conditions = " AND ".join(select_rows.values()) |
|
|
if where_conditions: |
|
|
if where_conditions: |
|
|
sql_queries[table_name] += " WHERE " + where_conditions |
|
|
sql_queries[table_name] += " WHERE " + where_conditions |
|
|
|
|
|
else: |
|
|
|
|
|
sql_queries[table_name] += " WHERE 1 = 0" |
|
|
return sql_queries |
|
|
return sql_queries |
|
|
# async def replace_table_with_subquery(ctrSqlDict, oldStrSql): |
|
|
# async def replace_table_with_subquery(ctrSqlDict, oldStrSql): |
|
|
# table_alias_map = {} # 存储表名和别名的映射 |
|
|
# table_alias_map = {} # 存储表名和别名的映射 |
|
|
|