Skip to content
Advertisement

This procedure is inserting null values into my custom table – why?

Table output is like this when I pass acad_prog ‘BTRCS’ and admit_term ‘1701’ as input in procedure:

Advertisement

Answer

You need to use cursor values in if statement and in insert statement like this:

This can also be done using insert into .. select .. (without cursor) as following:

Cheers!!

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