LET l_filename2 = 'dsdata.sh'
LET l_cmd = "echo ' sqlplus dsdata/dsdata@topprd < $1' >$HOME/" || l_filename2 CLIPPED
RUN l_cmd
LET l_filename = 'productorder2.sch'
LET l_cmd = " rm $HOME/" || l_filename CLIPPED
RUN l_cmd
LET l_sql = " INSERT INTO productorder2@testdb(ordercode,status) VALUES(‘a’,4); "
LET l_cmd = ' echo "',l_sql CLIPPED, '" > $HOME/' || l_filename CLIPPED
RUN l_cmd
LET l_str = "sh $HOME/",l_filename2 CLIPPED," $HOME/", l_filename CLIPPED
RUN l_str
哪个大神指教一下上面代码的意思?
这个是linux shell 脚本
不是cmd
连接数据库执行 sql