I’m not sure if this is possible, but if I have a directory with 40+ SQL Scripts in it. Is it possible to make a run_scripts.bat and/or a run_scripts.sh file to execute all SQL scripts in the folder? Sorry I don’t have even a start code, but I’ve been looking around at how this would be done to no avail. Thanks to anyone that can help
Share
Depending on the database you use (e.g. mysql), you can just run in a loop:
Then, you can call this on the command line: