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

Commitfa66de9

Browse files
committed
>>>>Luckily, PG 8 is available for this. Do you have a short example?
>>>>>>No, and I think it should be in the manual as an example.>>>>>>You will need to enter a loop that uses exception handling to detect>>>unique_violation.>>>>Pursuant to an IRC discussion to which Dennis Bjorklund and>>Christopher Kings-Lynne made most of the contributions, please find>>enclosed an example patch demonstrating an UPSERT-like capability.>>David Fetter
1 parentbd32a25 commitfa66de9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎doc/src/sgml/plpgsql.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.66 2005/04/19 03:37:20 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.67 2005/04/19 03:55:43 momjian Exp $
33
-->
44

55
<chapter id="plpgsql">
@@ -2104,6 +2104,7 @@ END;
21042104
</para>
21052105
</tip>
21062106
<example id="plpgsql-upsert-example">
2107+
<title>Exceptions with UPDATE/INSERT</title>
21072108
<para>
21082109
This example uses an <literal>EXCEPTION</> to <command>UPDATE</> or
21092110
<command>INSERT</>, as appropriate.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp