declare

   myCID binary_integer;
   myLname varchar2(40);
   myFname varchar2(40);
  
   cursor highIdx is select max(CID) from cst;


begin
  dbms_output.enable;

  open highIdx;
  fetch highIdx into myCID;
  myCID := myCID+1;
  
  dbms_output.put_line(myCID);  
  
  myLname := 'MARS';
  myFname := 'VERONICA';
    
  insert into cst values(myCID, myLname, myFname);
  
  
end;
/
