[size=large]insert into t_schedule_conflict (publishId,pubVersion)
SELECT a.publishId, a.pubVersion
FROM t_publish_time_strategy a, t_publish_timerange b
where a.publishId=temp_publishId and a.pubVersion=temp_pubVersion and a.timerangeId=b.timerangeId;[/size]
SELECT a.publishId, a.pubVersion
FROM t_publish_time_strategy a, t_publish_timerange b
where a.publishId=temp_publishId and a.pubVersion=temp_pubVersion and a.timerangeId=b.timerangeId;[/size]
本文提供了一个SQL语句示例,展示了如何通过使用子查询的方式解决发布时间和范围的调度冲突问题。具体实现中涉及到了多个表之间的关联查询以及条件筛选。
7732

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



