Search Postgresql Archives

Re: Why No WHERE clause for INSERT statements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maurice Gittens <mainmanmauricio@xxxxxxxxx> writes:
> The syntax includes a where clause allowing qualified declarative
> control over what is deleted.

> Why would the same not hold for the insert statement?

All that stuff is buried in the "query" option.  You can do something
like

	INSERT INTO table SELECT ... WHERE ...

so the full power of SELECT is available already.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux