Documentation — Commands reference
Runs the statements of a file. It is a command of the command line client: the server does not know it.
source FILE;
FILE does not exist and has no .sql extension, FILE.sql is tried.;, and a statement may span several lines.source command.This is how to create a table with hundreds of thousands of columns: put the alter table statements in files and run them one after the other.
source 01_create_table;
source 02_alter_batch_01;