connect scott/tiger var leom char(10); var eod char(10); exec :leom := to_date('30.09.2013','DD.MM.YYYY'); exec :eod := to_date('31.10.2013','DD.MM.YYYY'); SELECT col1, col2 ....col n FROM TABLE1 WHERE START_DATE <= :eod AND END_DATE <= :leom;
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Tuesday, January 28, 2014
How to save a value in a bind variable
Useful for tracing or explaining queries that use bind variables:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment