question about markup
question about markup
От:
Robert Treat <xzilla@users.sourceforge.net>
Дата:
someone suggested that the insert command at the end of
http://wwwmaster.postgresql.org/docs/8.0/interactive/dml.html would be
better if it were a link like the copy command is. Is there some reason not
to make it a link? I notice most commands are not done this way.
--
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
Re: question about markup
От:
Neil Conway <neilc@samurai.com>
Дата:
Robert Treat wrote:
> someone suggested that the insert command at the end of
> http://wwwmaster.postgresql.org/docs/8.0/interactive/dml.html would be
> better if it were a link like the copy command is. Is there some reason not
> to make it a link?
No particular reason. I've applied the following patch to head; it makes
the first reference to "INSERT" in that page an xref, as well as making
a few other minor improvements.
> I notice most commands are not done this way.
Yeah, there's not much point linking each and every reference to a SQL
command.
-Neil
Index: doc/src/sgml/dml.sgml
===================================================================
RCS file: /var/lib/cvs/pgsql/doc/src/sgml/dml.sgml,v
retrieving revision 1.10
diff -c -r1.10 dml.sgml
*** doc/src/sgml/dml.sgml 22 Jan 2005 22:56:35 -0000 1.10
--- doc/src/sgml/dml.sgml 1 Mar 2005 23:39:45 -0000
***************
*** 38,47 ****
! To create a new row, use the INSERT command.
! The command requires the table name and a value for each of the
! columns of the table. For example, consider the products table
! from :
CREATE TABLE products (
product_no integer,
--- 38,47 ----
! To create a new row, use the command. The command requires the
! table name and a value for each of the columns of the table. For
! example, consider the products table from :
CREATE TABLE products (
product_no integer,
***************
*** 98,104 ****
To do bulk loads, that is, inserting a lot of data,
take a look at the command. It is not as flexible as the
! INSERT command, but is more efficient.
--- 98,106 ----
To do bulk loads, that is, inserting a lot of data,
take a look at the command. It is not as flexible as the
! INSERT command, but is more efficient. Refer to
! for more information on improving bulk
! loading performance.
***************
*** 188,194 ****
You can update more than one column in an
! UPDATE command by listing more than one
assignment in the SET clause. For example:
UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a > 0;
--- 190,196 ----
You can update more than one column in an
! UPDATE command by listing more than one
assignment in the SET clause. For example:
UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a > 0;
***************
*** 222,230 ****
! You use the DELETE command to remove rows; the
! syntax is very similar to the UPDATE command.
! For instance, to remove all rows from the products table that have a price of 10, use
DELETE FROM products WHERE price = 10;
--- 224,234 ----
! You use the command to remove rows; the syntax is
! very similar to the UPDATE command. For
! instance, to remove all rows from the products table that have a
! price of 10, use
DELETE FROM products WHERE price = 10;
Re: question about markup
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Robert Treat wrote: > > someone suggested that the insert command at the end of > http://wwwmaster.postgresql.org/docs/8.0/interactive/dml.html would be > better if it were a link like the copy command is. Is there some reason not > to make it a link? I notice most commands are not done this way. Done. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073