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

	<entry>
		<id>http://sqle.ru/index.php?title=PostgreSQL/Array/Array_Column&amp;diff=5018&amp;oldid=prev</id>
		<title> в 13:45, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=PostgreSQL/Array/Array_Column&amp;diff=5018&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://sqle.ru/index.php?title=PostgreSQL/Array/Array_Column&amp;diff=5019&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=PostgreSQL/Array/Array_Column&amp;diff=5019&amp;oldid=prev"/>
				<updated>2010-05-26T10:14:37Z</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;==Creating a table with a multidimensional array column==&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;
&lt;br /&gt;
postgres=# -- Creating a table with a multidimensional array column&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# CREATE TABLE authors (id integer,titles text[][]);&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table authors;&lt;br /&gt;
DROP TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Creating a table with an array column==&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;
&lt;br /&gt;
postgres=# -- Creating a table with an array column&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# CREATE TABLE books (employee_id integer, books text[]);&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table books;&lt;br /&gt;
DROP TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Integer array and text array==&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;
&lt;br /&gt;
postgres=# -- Declaration of Array Types&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# CREATE TABLE sal_emp (&lt;br /&gt;
postgres(#    name            text,&lt;br /&gt;
postgres(#    pay_by_quarter  integer[],&lt;br /&gt;
postgres(#    schedule        text[][]&lt;br /&gt;
postgres(# );&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=# INSERT INTO sal_emp&lt;br /&gt;
postgres-#    VALUES (&amp;quot;A&amp;quot;,&lt;br /&gt;
postgres(#    &amp;quot;{10000, 10000, 10000, 10000}&amp;quot;,&lt;br /&gt;
postgres(#    &amp;quot;{{&amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;}, {&amp;quot;C&amp;quot;, &amp;quot;D&amp;quot;}}&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# INSERT INTO sal_emp&lt;br /&gt;
postgres-#    VALUES (&amp;quot;B&amp;quot;,&lt;br /&gt;
postgres(#    &amp;quot;{20000, 25000, 25000, 25000}&amp;quot;,&lt;br /&gt;
postgres(#    &amp;quot;{{&amp;quot;Z&amp;quot;, &amp;quot;X&amp;quot;}, {&amp;quot;Y&amp;quot;, &amp;quot;Q&amp;quot;}}&amp;quot;);&lt;br /&gt;
INSERT 0 1&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# SELECT * FROM sal_emp;&lt;br /&gt;
 name |      pay_by_quarter       |   schedule&lt;br /&gt;
------+---------------------------+---------------&lt;br /&gt;
 A    | {10000,10000,10000,10000} | {{A,B},{C,D}}&lt;br /&gt;
 B    | {20000,25000,25000,25000} | {{Z,X},{Y,Q}}&lt;br /&gt;
(2 rows)&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table sal_emp;&lt;br /&gt;
DROP TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Two dimentional array==&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 t (&lt;br /&gt;
postgres(#    squares   integer[3][3]&lt;br /&gt;
postgres(# );&lt;br /&gt;
CREATE TABLE&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# \d t;&lt;br /&gt;
        Table &amp;quot;public.t&amp;quot;&lt;br /&gt;
 Column  |   Type    | Modifiers&lt;br /&gt;
---------+-----------+-----------&lt;br /&gt;
 squares | integer[] |&lt;br /&gt;
postgres=#&lt;br /&gt;
postgres=# drop table t;&lt;br /&gt;
DROP TABLE&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>