Given two times, how do i insert one row per hour in the Oracle table?
Start Time: 3.00 PM
End Time: 6.00 PM
Name: 'Asdfg'
Expected Data to be generated:
Name StartTime EndTime
ASDFG 3.00 4.00
ASDFG 4.00, 5.00
ASDFG 5.00 6.00
This does it without PL/SQL, in one insert. You could parameterize the start and end times and use it in your procedure: