SELECT
type,
create_date,
substr(create_date,1,10) as d,
substr(create_date,12) as t
FROM
history_received_message order by d desc,t asc
type,
create_date,
substr(create_date,1,10) as d,
substr(create_date,12) as t
FROM
history_received_message order by d desc,t asc
本文提供了一个SQL查询示例,用于从历史消息表中选择特定类型的消息,并按创建日期进行排序。此查询展示了如何使用substr函数来截取日期的不同部分。
2万+

被折叠的 条评论
为什么被折叠?



