There is no limit built into SQL. In practice, you will most likely hit limiting factors like memory or performance issues.