awk '/CREATE TABLE/{f=0 ;n++; print >(file="out_" n); close("out_" n-1)} f{ print > file}; /CREATE TABLE/{f=1}' sql_file
Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer