shell - How to execute multiple SQL files in UNIX? -


i have n .sql files example 1.sql, 2.sl, 3.sql.... n.sql in folder named sql_scripts. want execute files using single shell script. whats easiest , preferred way so?

cat 1.sql 2.sql 3.sql ... n.sql |sqlplus username/password@sid 

or

cat *.sql|sqlplus username/password@sid 

?


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -