<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL%2FCursor%2FClose_Cursor</id>
		<title>PostgreSQL/Cursor/Close Cursor - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.sqle.ru/index.php?action=history&amp;feed=atom&amp;title=PostgreSQL%2FCursor%2FClose_Cursor"/>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=PostgreSQL/Cursor/Close_Cursor&amp;action=history"/>
		<updated>2026-04-04T09:55:38Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.sqle.ru/index.php?title=PostgreSQL/Cursor/Close_Cursor&amp;diff=4470&amp;oldid=prev</id>
		<title> в 13:45, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=PostgreSQL/Cursor/Close_Cursor&amp;diff=4470&amp;oldid=prev"/>
				<updated>2010-05-26T13:45:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:45, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.sqle.ru/index.php?title=PostgreSQL/Cursor/Close_Cursor&amp;diff=4471&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.sqle.ru/index.php?title=PostgreSQL/Cursor/Close_Cursor&amp;diff=4471&amp;oldid=prev"/>
				<updated>2010-05-26T10:13:47Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Close a cursor==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
postgres=# CREATE TABLE &amp;quot;publishers&amp;quot; (&lt;br /&gt;
postgres(#      &amp;quot;id&amp;quot; integer NOT NULL,&lt;br /&gt;
postgres(#      &amp;quot;name&amp;quot; text,&lt;br /&gt;
postgres(#      &amp;quot;address&amp;quot; text,&lt;br /&gt;
postgres(#      Constraint &amp;quot;publishers_pkey&amp;quot; Primary Key (&amp;quot;id&amp;quot;)&lt;br /&gt;
postgres(# );&lt;br /&gt;
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index &amp;quot;publishers_pkey&amp;quot; for table &amp;quot;publishers&amp;quot;&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# insert into publishers values(150, &amp;quot;Can Press&amp;quot;,  &amp;quot;29 Ave. Toronto, ON&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(91,  &amp;quot;Henry Inc.&amp;quot;, &amp;quot;115 Street New York, NY&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(113, &amp;quot;O Inc.&amp;quot;,     &amp;quot;101 St, Sebastopol, CA&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(62,  &amp;quot;W Pubs&amp;quot;,     &amp;quot;1515, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(105, &amp;quot;N Press&amp;quot;,    &amp;quot;19 W, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(99,  &amp;quot;A Inc&amp;quot;,      &amp;quot;375 St, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(101, &amp;quot;Z Inc&amp;quot;,      &amp;quot;375 Ave, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(163, &amp;quot;M Press&amp;quot;,    &amp;quot;PO Box 1215&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(171, &amp;quot;B&amp;quot;,          &amp;quot;16 W. 18th St. New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(102, &amp;quot;P Inc&amp;quot;,      &amp;quot;375 Hudson St, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(75,  &amp;quot;D Inc&amp;quot;,      &amp;quot;1540 Broadway, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(65,  &amp;quot;H Pubs&amp;quot;,     &amp;quot;10 E 53rd St, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=# insert into publishers values(59,  &amp;quot;R Inc&amp;quot;,      &amp;quot;1540 Broadway, New York&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# select * from publishers;&lt;br /&gt;
 id  |    name    |         address&lt;br /&gt;
-----+------------+-------------------------&lt;br /&gt;
 150 | Can Press  | 29 Ave. Toronto, ON&lt;br /&gt;
  91 | Henry Inc. | 115 Street New York, NY&lt;br /&gt;
 113 | O Inc.     | 101 St, Sebastopol, CA&lt;br /&gt;
  62 | W Pubs     | 1515, New York&lt;br /&gt;
 105 | N Press    | 19 W, New York&lt;br /&gt;
  99 | A Inc      | 375 St, New York&lt;br /&gt;
 101 | Z Inc      | 375 Ave, New York&lt;br /&gt;
 163 | M Press    | PO Box 1215&lt;br /&gt;
 171 | B          | 16 W. 18th St. New York&lt;br /&gt;
 102 | P Inc      | 375 Hudson St, New York&lt;br /&gt;
  75 | D Inc      | 1540 Broadway, New York&lt;br /&gt;
  65 | H Pubs     | 10 E 53rd St, New York&lt;br /&gt;
  59 | R Inc      | 1540 Broadway, New York&lt;br /&gt;
(13 rows)&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# -- Declares a cursor named cur_publisher and then uses that cursor to fetch 2 rows.&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# BEGIN WORK;&lt;br /&gt;
BEGIN&lt;br /&gt;
postgres=# DECLARE cur_publisher CURSOR FOR SELECT name FROM publishers;&lt;br /&gt;
DECLARE CURSOR&lt;br /&gt;
postgres=# FETCH FORWARD 2 IN cur_publisher;&lt;br /&gt;
    name&lt;br /&gt;
------------&lt;br /&gt;
 Can Press&lt;br /&gt;
 Henry Inc.&lt;br /&gt;
(2 rows)&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# close cur_publisher;&lt;br /&gt;
CLOSE CURSOR&lt;br /&gt;
postgres=# END WORK;&lt;br /&gt;
COMMIT&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table publishers;&lt;br /&gt;
DROP TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>