Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
a1d479f5
Commit
a1d479f5
authored
16 years ago
by
Alvaro Herrera
Browse files
Options
Downloads
Patches
Plain Diff
Add SGML ID attributes to the arrays subsections, and a few index entries for
them.
parent
ea0382e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/array.sgml
+32
-7
32 additions, 7 deletions
doc/src/sgml/array.sgml
with
32 additions
and
7 deletions
doc/src/sgml/array.sgml
+
32
−
7
View file @
a1d479f5
<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.6
4
2008/0
3
/2
6 16:34:47 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/array.sgml,v 1.6
5
2008/0
4
/2
7 04:33:27 alvherre
Exp $ -->
<sect1 id="arrays">
<sect1 id="arrays">
<title>Arrays</title>
<title>Arrays</title>
...
@@ -15,9 +15,14 @@
...
@@ -15,9 +15,14 @@
Arrays of domains are not yet supported.
Arrays of domains are not yet supported.
</para>
</para>
<sect2>
<sect2
id="arrays-declaration"
>
<title>Declaration of Array Types</title>
<title>Declaration of Array Types</title>
<indexterm>
<primary>array</primary>
<secondary>declaration</secondary>
</indexterm>
<para>
<para>
To illustrate the use of array types, we create this table:
To illustrate the use of array types, we create this table:
<programlisting>
<programlisting>
...
@@ -77,7 +82,7 @@ CREATE TABLE tictactoe (
...
@@ -77,7 +82,7 @@ CREATE TABLE tictactoe (
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2
id="arrays-input"
>
<title>Array Value Input</title>
<title>Array Value Input</title>
<indexterm>
<indexterm>
...
@@ -189,9 +194,14 @@ ERROR: multidimensional arrays must have array expressions with matching dimens
...
@@ -189,9 +194,14 @@ ERROR: multidimensional arrays must have array expressions with matching dimens
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2
id="arrays-accessing"
>
<title>Accessing Arrays</title>
<title>Accessing Arrays</title>
<indexterm>
<primary>array</primary>
<secondary>accessing</secondary>
</indexterm>
<para>
<para>
Now, we can run some queries on the table.
Now, we can run some queries on the table.
First, we show how to access a single element of an array at a time.
First, we show how to access a single element of an array at a time.
...
@@ -315,9 +325,14 @@ SELECT array_upper(schedule, 1) FROM sal_emp WHERE name = 'Carol';
...
@@ -315,9 +325,14 @@ SELECT array_upper(schedule, 1) FROM sal_emp WHERE name = 'Carol';
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2
id="arrays-modifying"
>
<title>Modifying Arrays</title>
<title>Modifying Arrays</title>
<indexterm>
<primary>array</primary>
<secondary>modifying</secondary>
</indexterm>
<para>
<para>
An array value can be replaced completely:
An array value can be replaced completely:
...
@@ -489,9 +504,14 @@ SELECT array_cat(ARRAY[5,6], ARRAY[[1,2],[3,4]]);
...
@@ -489,9 +504,14 @@ SELECT array_cat(ARRAY[5,6], ARRAY[[1,2],[3,4]]);
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2
id="arrays-searching"
>
<title>Searching in Arrays</title>
<title>Searching in Arrays</title>
<indexterm>
<primary>array</primary>
<secondary>searching</secondary>
</indexterm>
<para>
<para>
To search for a value in an array, you must check each value of the
To search for a value in an array, you must check each value of the
array. This can be done by hand, if you know the size of the array.
array. This can be done by hand, if you know the size of the array.
...
@@ -533,9 +553,14 @@ SELECT * FROM sal_emp WHERE 10000 = ALL (pay_by_quarter);
...
@@ -533,9 +553,14 @@ SELECT * FROM sal_emp WHERE 10000 = ALL (pay_by_quarter);
</tip>
</tip>
</sect2>
</sect2>
<sect2>
<sect2
id="arrays-io"
>
<title>Array Input and Output Syntax</title>
<title>Array Input and Output Syntax</title>
<indexterm>
<primary>array</primary>
<secondary>I/O</secondary>
</indexterm>
<para>
<para>
The external text representation of an array value consists of items that
The external text representation of an array value consists of items that
are interpreted according to the I/O conversion rules for the array's
are interpreted according to the I/O conversion rules for the array's
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment