select t1.id as productid,t1.productname,t1.saleunitprice,t1.storeid,t1.status,t1.mainimage as url from ProductInfo t1 where t1.status=1 and t1.mainimage is not null and rownum<=30
order by id desc,(case updatedtime when null then createdtime else updatedtime end) desc
Oracle中在ordery中用case when
最新推荐文章于 2024-10-29 15:41:33 发布