No, SQL does not support FOR EACH / etc syntax. Closest you could use cursors. In addition, there is no array syntax in SQL - you will have to use:
SELECT 2 FROM DUAL UNION ALL SELECT 34 FROM DUAL UNION ALL SELECT 24 FROM DUAL
... build your "array of values" equivalent in SQL.
SQL scripts will have separate INSERT statements. Would you like to use PHP / Java / etc. use the FOR loop-esque syntax like what is shown in your example.
OMG Ponies Sep 16 '09 at 16:26 2009-09-16 16:26
source share