zoukankan      html  css  js  c++  java
  • DECLARE CURSOR (Transact-SQL)

    Defines the attributes of a Transact-SQL server cursor, such as its scrolling behavior and the query used to build the result set on which the cursor operates.

    DECLARE CURSOR accepts both a syntax based on the ISO standard and a syntax using a set of Transact-SQL extensions.

    Syntax

    ISO Syntax  
    DECLARE cursor_name [ INSENSITIVE ] [ SCROLL ] CURSOR   
         FOR select_statement   
         [ FOR { READ ONLY | UPDATE [ OF column_name [ ,...n ] ] } ]  
    [;]  
    Transact-SQL Extended Syntax  
    DECLARE cursor_name CURSOR [ LOCAL | GLOBAL ]   
         [ FORWARD_ONLY | SCROLL ]   
         [ STATIC | KEYSET | DYNAMIC | FAST_FORWARD ]   
         [ READ_ONLY | SCROLL_LOCKS | OPTIMISTIC ]   
         [ TYPE_WARNING ]   
         FOR select_statement   
         [ FOR UPDATE [ OF column_name [ ,...n ] ] ]  
    [;]  
  • 相关阅读:
    JS判断页面是否加载完成
    简单的前端验证码
    如何让旧浏览器支持HTML5新标签
    JSON使用(4)
    JSON语法(3)
    JSON简介(2)
    JSON教程(1)
    jQuery-noConflict()
    jQuery
    jQuery
  • 原文地址:https://www.cnblogs.com/chucklu/p/7346132.html
Copyright © 2011-2022 走看看