(1) 数据记录筛选: sql="select * from 数据表 where 字段名=字段值 order by 字段名 [desc]" sql="select * from 数据表 where 字段名 like '%字段值%' order by 字段名 [desc]" sql="select top 10 * from 数据表 where 字段名 order by 字段名 [desc]" sql="select * from 数据表…
红色为常用 0.row_number() over 和数据组合sale/cnt select *,row_number() over(order by productname) as rownumberfrom productsselect row_number() over(order by sale/cnt desc) as sort, sale/cntfrom (select -60 as sale,3 as cnt from dual unionselect 24 as sale,6 a…