我在orcal中写了一句
select * from tab1 where substr(to_char(time,'YYYY-MM-DD HH24:MI:SS'),1,10)=to_char(sysdate,'YYYY-MM-DD')
是可以的没有问题,但是现在我想用一个参数替代sysdate,这个参数的类型应该是什么,sql语句应该怎么修改,求大神帮忙,谢谢!
用存储过程 http://www.cnblogs.com/hero4china/articles/base_rule_oracle_procedure.html