Execute a sql script depending on number of records in a table [message #639006] |
Mon, 29 June 2015 08:22 |
orausern
Messages: 826 Registered: December 2005
|
Senior Member |
|
|
Hi,
I have a requirement to execute a sql script as many no. of times as the number of records in a table. Is it something that can be accomplieshed? Lets say that there is a script like the below and it has to be executed as many times as the nubmer for rows in a table like emp (it may have 10 records or 12 ...that keeps varying.
This is a simplified version of an issue I am having. If this can be done, it will help me to solve the actual issue of which this is an example.
Thanks,
OrauserN
|
|
|
|
|
|
|
|
|
|
|