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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -