# Loops over sql files

**URL:** <https://forum.liquibase.org/t/loops-over-sql-files/185>\
**Category:** General Discussion\
**Created:** [August 6, 2009, 9:29am UTC](https://forum.liquibase.org/t/loops-over-sql-files/185 "2009-08-06T09:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nullpointer\_lb](https://avatars.discourse-cdn.com/v4/letter/n/e274bd/32.png) [@nullpointer\_lb](https://forum.liquibase.org/u/nullpointer_lb)\
**Post date:** [August 6, 2009, 9:29am UTC](https://forum.liquibase.org/t/loops-over-sql-files/185/1 "2009-08-06T09:29:00Z")

</div>

Hi,  
Is it possible to use ant’s sequantial along with liquibase’s update?  
I am keeping sql file’s names in file, e.g

filenames=first,second,third
and would like to iterate through this file and execute sql files with given name
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
But above does not want to work. Is there any other way to do this? B. regard Marcin

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [August 6, 2009, 9:29am UTC](https://forum.liquibase.org/t/loops-over-sql-files/185/2 "2009-08-06T09:29:00Z")

</div>

There is an includeAll tag that lets you run all files in a folder ([http://www.liquibase.org/manual/includeall).&nbsp;](http://www.liquibase.org/manual/includeall).%C2%A0) Otherwise, there is no way to use ant’s sequential tags or any other looping tags within a changelog file.

You would be able to create a custom change that could loop through folders and read statements to execute.

Nathan
