Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87aafa1

Browse files
author
Neil Conway
committed
SGML improvements to the DML chapter.
1 parenta2ad04f commit87aafa1

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

‎doc/src/sgml/dml.sgml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.10 2005/01/22 22:56:35 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.11 2005/03/01 23:45:00 neilc Exp $ -->
22

33
<chapter id="dml">
44
<title>Data Manipulation</title>
@@ -38,10 +38,10 @@
3838
</para>
3939

4040
<para>
41-
To create a new row, use the <literal>INSERT</literal> command.
42-
The command requires the table name and a value for each of the
43-
columns of the table. For example, consider theproductstable
44-
from <xref linkend="ddl">:
41+
To create a new row, use the <xref linkend="sql-insert"
42+
xreflabel="sql-insert-title"> command. The command requires the
43+
table name and a value for each of thecolumns of thetable. For
44+
example, consider the products tablefrom <xref linkend="ddl">:
4545
<programlisting>
4646
CREATE TABLE products (
4747
product_no integer,
@@ -98,7 +98,9 @@ INSERT INTO products DEFAULT VALUES;
9898
To do <quote>bulk loads</quote>, that is, inserting a lot of data,
9999
take a look at the <xref linkend="sql-copy"
100100
endterm="sql-copy-title"> command. It is not as flexible as the
101-
<command>INSERT</command> command, but is more efficient.
101+
<command>INSERT</command> command, but is more efficient. Refer to
102+
<xref linkend="populate"> for more information on improving bulk
103+
loading performance.
102104
</para>
103105
</tip>
104106
</sect1>
@@ -188,7 +190,7 @@ UPDATE products SET price = price * 1.10;
188190

189191
<para>
190192
You can update more than one column in an
191-
<literal>UPDATE</literal> command by listing more than one
193+
<command>UPDATE</command> command by listing more than one
192194
assignment in the <literal>SET</literal> clause. For example:
193195
<programlisting>
194196
UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a &gt; 0;
@@ -222,9 +224,11 @@ UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a &gt; 0;
222224
</para>
223225

224226
<para>
225-
You use the <literal>DELETE</literal> command to remove rows; the
226-
syntax is very similar to the <literal>UPDATE</literal> command.
227-
For instance, to remove all rows from the products table that have a price of 10, use
227+
You use the <xref linkend="sql-delete"
228+
xreflabel="sql-delete-title"> command to remove rows; the syntax is
229+
very similar to the <command>UPDATE</command> command. For
230+
instance, to remove all rows from the products table that have a
231+
price of 10, use
228232
<programlisting>
229233
DELETE FROM products WHERE price = 10;
230234
</programlisting>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp