今天一个朋友问我下面这段sql语句的问题,我发现了他竟然把程序员的编程思想带入了oracle,虽然是错误的,但也是很经典的错误啊. create or replace package p_view_param is function set_param(num VARCHAR2) return VARCHAR2; function get_param return VARCHAR2; end p_view_param; CREATE or replace package body p_view_
原文链接:http://www.cnblogs.com/mailingfeng/archive/2013/01/07/2850116.html order by 的数值型灵活使用 select * from table_a where order by decode(函数,'asc',1,'desc',-1)*jsny; 控制试图的访问时间: 6.create view ... as select ... from where exists(select x from dual where sy
order by 的数值型灵活使用 select * from table_a where order by decode(函数,'asc',1,'desc',-1)*jsny; 控制试图的访问时间: 6.create view ... as select ... from where exists(select x from dual where sysdate>=8:00am and sysdate<=5:00pm) 妙用decode实现排序 select * from tabname o
1.map map是python内置的高阶函数,它接收一个函数和一个列表,函数依次作用在列表的每个元素上,返回一个可迭代map对象. class map(object): """ map(func, *iterables) --> map object Make an iterator that computes the function using arguments from each of the iterables. Stops when the shortes