select * from ( SELECT t_information.information_id , information_title , published_start_date , published_end_date , information_description , published_flag , popup_flg , t_information.deleted_by , t_information.deleted_at , information_en_title , information_en_description , information_flag FROM t_information left JOIN t_information_en ON t_information.information_id = t_information_en.information_id) a where a.information_id = '76e53a91-c218-48fd-8a40-375993000d06';
时间: 2024-04-15 08:27:01 浏览: 130
SELECT语句的完整语法 可参考资料
根据你提供的SQL查询语句,你想要从两个表(t_information和t_information_en)中选择特定的列,并且通过左连接将它们关联起来。然后,你想要从结果中选择信息ID为'76e53a91-c218-48fd-8a40-375993000d06'的行。以下是查询语句的改进版本:
```sql
SELECT
a.information_id,
a.information_title,
a.published_start_date,
a.published_end_date,
a.information_description,
a.published_flag,
a.popup_flg,
a.deleted_by,
a.deleted_at,
a.information_en_title,
a.information_en_description,
a.information_flag
FROM
(
SELECT
t_information.information_id,
information_title,
published_start_date,
published_end_date,
information_description,
published_flag,
popup_flg,
t_information.deleted_by,
t_information.deleted_at,
information_en_title,
information_en_description,
information_flag
FROM
t_information
LEFT JOIN t_information_en ON t_information.information_id = t_information_en.information_id
) a
WHERE
a.information_id = '76e53a91-c218-48fd-8a40-375993000d06';
```
这个查询语句将返回符合条件的特定信息ID的行,并包含所选择的列。请注意,我对查询进行了格式化,以便更清晰地阅读和理解。如果有任何其他问题,请随时提问!
阅读全文