Application of the cursor in the autonomous development of online sentence test system
Application backgroundJudge Online (referred to as OJ) generally refers to the international students in the program design contest and other forms of programming contest to evaluate the correctness and efficiency of the program and the program is based on the network environment. Discusses the application of cursor in OJ. The discussion is focused on the in the test account were randomly assigned in a stored procedure, and in answer to remove the trigger by vernier to achieve progressive access data.
Key TechnologyApplication of a cursor mechanism to a line or a branch in a relationship table. Using the SQL Transact cursor, the typical process of using SQL Transact cursor in stored procedure or trigger:A. use the CURSOR DECLARE statement to declare the SQL Transact cursor;B. uses the OPEN statement to open the cursor;C. uses the FETCH statement to extract a single row;D. closes and releases the cursor using the CLOSE statement and the DEALLOCATE statement.
File listTips: You can preview the content of files by clicking file names^_^
(Add your comment, get 0.1 Point)
- Page 1
- Total 1