Step 1: Declare the cursor

There are three types of cursor-declare commands. Each one executes the cursor’s select statement differently: