If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > To_date function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-04, 10:24
newbie2004 newbie2004 is offline
Registered User
 
Join Date: Apr 2004
Posts: 113
To_date function

What does this mean?

select to_date('&1', 'MM/DD/YYYY') into v_start_date from dual;
select (to_date('&2', 'MM/DD/YYYY')+1) into v_end_date from dual;

I am mainly asking about the:

select to_date('&1',

What does the '&1' mean?
Reply With Quote
  #2 (permalink)  
Old 06-02-04, 15:33
keane5 keane5 is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
to_date function &1

The '&1' is an input parameter to your SQL statement. The '1' is the varable name and the '&' tells SQL that the 1 is a input variable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On