sql with 写法
Posted IT小孩
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql with 写法相关的知识,希望对你有一定的参考价值。
with h_asign_id as (
select asign_id from assign_h h
left join assignment a on a.id = h.asign_id
where 1=1
group by h.asign_id
)
select h.asign_id from assign_history h, h_asign_id i
where
h.id in ( select max(assign_h.id) from assign_h where assign_hasign_id = h.asign_id)
and
h.asign_id = i.asign_id
以上是关于sql with 写法的主要内容,如果未能解决你的问题,请参考以下文章
with(window) onload=onresize=function(){} 写法