Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
66fc528d
Commit
66fc528d
authored
Mar 08, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove somebody's flight of fancy about an UPDATE with ORDER BY and LIMIT.
parent
4c0efd3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
doc/src/sgml/ref/update.sgml
doc/src/sgml/ref/update.sgml
+1
-15
No files found.
doc/src/sgml/ref/update.sgml
View file @
66fc528d
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/update.sgml,v 1.3
6 2006/01/22 20:34:11
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/update.sgml,v 1.3
7 2006/03/08 22:59:09
tgl Exp $
PostgreSQL documentation
-->
...
...
@@ -232,20 +232,6 @@ UPDATE employees SET sales_count = sales_count + 1 WHERE id =
</programlisting>
</para>
<para>
Now that all the papers are signed, update the most recently closed
deal of the travelling salesperson who closed the Rocket Powered
Skates deal with the Acme Corporation.
<programlisting>
UPDATE employees SET last_closed_deal = deal.id
FROM accounts JOIN deals ON (account.id = deal.account_id)
WHERE deal.employee_id = employees.id
AND deal.name = 'Rocket Powered Skates'
AND accounts.name = 'Acme Corporation'
ORDER BY deal.signed_date DESC LIMIT 1;
</programlisting>
</para>
<para>
Attempt to insert a new stock item along with the quantity of stock. If
the item already exists, instead update the stock count of the existing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment