pl/sql 代码块: SELECT count(distinct t2.so_nbr) INTO v_count2 FROM KFGL_YW_STEP_qd t2 WHERE t2.partition_id_month=to_number(substr(p_month, 5, 2)) AND t2.area_id = cur_area.area_id AND t2.prod_id in (20201010,20201011,20202011,20203030); sql 直接运行 SELECT…
1.写匿名块,输入三角形三个表的长度.在控制台打印三角形的面积. declare -- (p=(a+b+c)/2) --声明三角形的面积 三条边 的 v_a number (10,2):=&no1; v_b number (10,2):=&no2; v_c number (10,2):=&no3; v_p number (10,2); begin v_p:=1/4*sqrt((v_a+v_b+v_c)*(v_a+v_b-v_c)*(v_a+v_c-v_b)*(v_b+v_c-v_a…