如果在 CURSOR 关键字的前面指定 SCROLL 或 INSENSITIVE 关键字,则不能在 CURSOR 和 FOR select_statement 关键字之间使用任何关键字。如果在 CURSOR 和 FOR select_statement 关键字之间指定任何关键字,则不能在 CURSOR 关键字的前面指定 SCROLL 或 INSENSITIVE。 如果使用 Transact-SQL 语法的 DECLARE CURSOR 不指定...
定义了 Transact-SQL 服务器游标的属性,例如游标的滚动行为和用于生成游标所操作的结果集的查询。DECLARE CURSOR既接受基于 ISO 标准的语法,也接受使用一组 Transact-SQL 扩展的语法。 Transact-SQL 语法约定 语法 ISO 语法: syntaxsql复制 DECLAREcursor_name[INSENSITIVE] [SCROLL]CURSORFORselect_statement[FOR{READ_...
定义了 Transact-SQL 服务器游标的属性,例如游标的滚动行为和用于生成游标所操作的结果集的查询。DECLARE CURSOR既接受基于 ISO 标准的语法,也接受使用一组 Transact-SQL 扩展的语法。 Transact-SQL 语法约定 语法 ISO 语法: syntaxsql复制 DECLAREcursor_name[INSENSITIVE] [SCROLL]CURSORFORselect_statement[FOR{READ_...
sp_describe_cursor_tables 描述游标所访问的基表。 变量可作为声明游标的 select_statement 的一部分使用。然而,在游标声明之后对那些变量的更改将不会对游标的操作产生影响。 权限 默认情况下,将 DECLARE CURSOR 权限授予对游标中所使用的视图、表和列有 SELECT 权限的任何用户。 示例 A. 使用简单游标和语法 打开...
A DECLARE CURSOR statement ( declare_cursor_statement) defines and generates a named results table with the name result_table_name. Structure <declare_cursor_statement>::= DECLARE <result_table_name> CURSOR FOR Explanation Existing results tables are implicitly deleted when a results table is ...
sp_describe_cursor_tables 描述游标所访问的基表。 变量可作为声明游标的 select_statement 的一部分使用。然而,在游标声明之后对那些变量的更改将不会对游标的操作产生影响。 权限 默认情况下,将 DECLARE CURSOR 权限授予对游标中所使用的视图、表和列有 SELECT 权限的任何用户。
However to use OPEN or FETCH for the cursor, the privileges held by the authorization ID of the statement must include at least one of the following: For each table or view identified in the SELECT statement of the cursor: The SELECT privilege on the table or view, and The USAGE ...
Tableau Desktop Pro edition 2020.2.2 Tableau requires cursors to access the result set: declare "SQL_CUR0x7fd83880dc00" cursor with hold for SELECT "office_supplies"."date" AS "date", "office_supplies"."item" AS "item", "office_supplies"...
Si une instruction DECLARE CURSOR utilisant la syntaxe Transact-SQL ne spécifie pas READ_ONLY, OPTIMISTIC ou SCROLL_LOCKS, par défaut les valeurs sont comme suit :si l'instruction SELECT ne prend pas en charge les mises à jour (autorisations insuffisantes, accès à des tables éloignées ...
current row is processed. This provides faster cursor opening and enables the result set to display updates made to the underlying tables. While forward-only cursors don't support backward scrolling, applications can return to the beginning of the result set by closing and reopening the cursor. ...