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 > Database Server Software > DB2 > How send a variable to the sql script file?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-11, 05:30
laozhang laozhang is offline
Registered User
 
Join Date: Apr 2011
Posts: 1
Question How send a variable to the sql script file?

good guys, i made a batch file for running my sql script,
but i don't know how to send a variable to my sql script.
any help will be appreciation.

for example:

variable is ‘201103’

t.bat 201103
db2 -td; -cf t.sql -l t.log

t.sql
select * from table1_&1
Reply With Quote
Reply

Tags
batch, db2, sql script

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