Each command should be end with ";" for write .sql file correct.