Hi,
My requirement is that I've to read a config file having below info
Oracle
number|double;integer -> user can put multiple values here
blob|binary
varchar2|string
varchar|string
number(p,s)|decimal
timestamp|date/time
and so on ....
Sybase
bigint|bigint
datetime|date/time
money|decimal
smallint|small integer
and so on ....
In the script I take a XML file as an input and extracts the source database and source & target tables' field's datatype info as below:
What I want to achieve is that
if $src_database = "Oracle" ;then
read only Oracle section of the config file
if $src_datatype = "number"; then
get the right hand side value i.e. "double" & "integer" and check if
either of the value matches with the $tgt_datatype then
echo "matches"
else
echo "doesn't match"
fi
fi
Please advice. Thanks.
-dips