Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Passing integer values from shell script to a .sql file
Hi All,
i'm facing the below problem in passing integer values.
*
Script
# this is a sample file to insert data into a table
USERNAME="system"
PASSWD="passwd"
SID="orcl"
declare -i val1=102
val2="tom"
declare -i val3=40000
val4="boston"
# database connection and updation.
sqlplus -s $USERNAME/$PASSWD <<EOF @"/home/abc/second.sql" $val1 $val2 $val3 $val4EOF
SQL file
++++++++++++++++++++++++
++++++++++++++++++++++++
How can i pass integer values to the sql script.
Thanks in advance,
an
Received on Tue Jun 06 2006 - 08:53:32 CDT