时间:2021-07-01 10:21:17 帮助过:5人阅读
完整日期:TO_DATE(‘2009-4-28 00:00:00‘, ‘yyyy-mm-dd hh24:mi:ss‘);
to_date(‘2008/09/20‘,‘yyyy/mm/dd‘)
创建视图语句 CREATE VIEW ViewPractice5_1
AS
select语句
SQL语句:
SELECT
sum(case WHEN sale_price<1000 THEN 1 ELSE 0 end) AS low_price,
sum(case WHEN sale_price BETWEEN 1001 AND 3000 THEN 1 ELSE 0 end) AS mid_price,
sum(case WHEN sale_price>3001 THEN 1 ELSE 0 end) AS high_price
FROM PRODUCT;
oracle中sql语句的to_date语法
标签:and ora cas view lse str image else 语法