刚接触Oracel,请各位大哥帮帮小弟
1.在oracel中select hq_sbz_mc,max(tvs_jl_kssj) from VIEW_HQ_SYJL_ALX group by hq_sbz_mc order by hq_sbz_mc ,这样的SQL语句我该怎么写?
2.当有个字段是DATE类型的,我怎么判断它为空?
------解决方案--------------------1.在oracle中,这样的语句没什么变化,可直接引用
2.select * from tab where date_col is null;
------解决方案--------------------1.在oracel中select hq_sbz_mc,max(tvs_jl_kssj) from VIEW_HQ_SYJL_ALX group by hq_sbz_mc order by hq_sbz_mc ,这样的SQL语句我该怎么写?
就这么写就可以了
------解决方案--------------------2.当有个字段是DATE类型的,我怎么判断它为空?
is null 或者not null