⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 move.sgml

📁 PostgreSQL7.4.6 for Linux
💻 SGML
字号:
<!--$Header: /cvsroot/pgsql/doc/src/sgml/ref/move.sgml,v 1.25 2003/09/22 00:16:58 petere Exp $PostgreSQL documentation--><refentry id="SQL-MOVE"> <refmeta>  <refentrytitle id="SQL-MOVE-TITLE">MOVE</refentrytitle>  <refmiscinfo>SQL - Language Statements</refmiscinfo> </refmeta> <refnamediv>  <refname>MOVE</refname>  <refpurpose>position a cursor</refpurpose> </refnamediv> <indexterm zone="sql-move">  <primary>MOVE</primary> </indexterm> <refsynopsisdiv><synopsis>MOVE [ <replaceable class="PARAMETER">direction</replaceable> { FROM | IN } ] <replaceable class="PARAMETER">cursorname</replaceable></synopsis> </refsynopsisdiv> <refsect1>  <title>Description</title>  <para>   <command>MOVE</command> repositions a cursor without retrieving any data.   <command>MOVE</command> works exactly like the <command>FETCH</command>   command, except it only positions the cursor and does not return rows.  </para>  <para>   Refer to    <xref linkend="sql-fetch" endterm="sql-fetch-title">   for details on syntax and usage.  </para> </refsect1> <refsect1>  <title>Outputs</title>  <para>   On successful completion, a <command>MOVE</> command returns a command   tag of the form<screen>MOVE <replaceable class="parameter">count</replaceable></screen>   The <replaceable class="parameter">count</replaceable> is the number   of rows moved over (possibly zero).  </para> </refsect1> <refsect1>  <title>Examples</title><programlisting>BEGIN WORK;DECLARE liahona CURSOR FOR SELECT * FROM films;-- Skip the first 5 rows:MOVE FORWARD 5 IN liahona;MOVE 5-- Fetch the 6th row from the cursor liahona:FETCH 1 FROM liahona; code  | title  | did | date_prod  |  kind  |  len-------+--------+-----+------------+--------+------- P_303 | 48 Hrs | 103 | 1982-10-22 | Action | 01:37(1 row)-- Close the cursor liahona and end the transaction:CLOSE liahona;COMMIT WORK;</programlisting> </refsect1> <refsect1>  <title>Compatibility</title>	  <para>   There is no <command>MOVE</command> statement in the SQL standard.  </para> </refsect1></refentry><!-- Keep this comment at the end of the fileLocal variables:mode: sgmlsgml-omittag:nilsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tsgml-parent-document:nilsgml-default-dtd-file:"../reference.ced"sgml-exposed-tags:nilsgml-local-catalogs:"/usr/lib/sgml/catalog"sgml-local-ecat-files:nilEnd:-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -