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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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