Skip to content
Advertisement

pl/SQL for loop

i having an issue on changing the month according to the loop in where the clause i have used between function the month of todate function have to be changed according to the loop if a becomes 1 then the month in where clause has to be changed according to 1 if a becomes 2 the month have be changed as 2

foe example

if a =1

if a =2

i have used timestamp variable

Advertisement

Answer

Use this condition:

It might be simpler to write this (but it won’t use an index on CREATETIME if you have one):

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement