LightoJ -1110 -An Easy LCS (LCS+Path Record)

2023-01-23   ES  

begin 
    /** 
      * 
      * Casting template 
      * @author xuyw 
      * @email[email protected]* @date 2014-05-19 
      */ 
      /*Cursor data variable uid*/ 
     Declare uid varchar (128); 
     DECLARE DOTEFAULT 0; 
    
     /*Query all users*/ 
     DECLARE CUR CURSOR for Select xxx from XX; 
     DECLARE CONTINUE HANDLER for Not Found Set Done = 1; 
   Open Cur; 
     /* Start the loop*/ 
     Repeat 
     /* Extract data in the cursor*/ 
     FETCH CUR INTO UID; 
     If done = 0 THEN 
     Execute your business 
    End if; 
   Unil Done = 1 
   End Repeat; 
   /*Close the cursor*/ 
   Close Cur; 
 End;

source

Related Posts

Webpack5 Optimize Learning (1) ——The plug -in webpack packaging analysis plug -in can help analyze the packaging data All attempts below

Filbeat+Logstash configuration 2

lyft releases the largest L5 autonomous driving forecast data set

IDEA deployment project to Tomcat, there is no project solution in Artifact

LightoJ -1110 -An Easy LCS (LCS+Path Record)

Random Posts

React scaffolding tools, components and life cycles

Android Studio Common plug -in and dependent ABNER

The setter and getter of the calculation attribute

CF1349F1 Slime and Sequences (Easy Version)

mybatis configuration file attribute configuration element analysis