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

Commit62d4526

Browse files
committed
Ooops, fix busted markup.
1 parent32fecad commit62d4526

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎doc/src/sgml/syntax.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.62 2002/06/1521:28:55 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.63 2002/06/1522:15:03 tgl Exp $
33
-->
44

55
<chapter id="sql-syntax">
@@ -1471,11 +1471,11 @@ SELECT somefunc() OR true;
14711471
be used. For example, this is an untrustworthy way of trying to
14721472
avoid division by zero in a WHERE clause:
14731473
<programlisting>
1474-
SELECT ... WHERE x<> 0 AND y/x> 1.5;
1474+
SELECT ... WHERE x&lt;&gt; 0 AND y/x&gt; 1.5;
14751475
</programlisting>
14761476
but this is safe:
14771477
<programlisting>
1478-
SELECT ... WHERE CASE WHEN x<> 0 THEN y/x> 1.5 ELSE false END;
1478+
SELECT ... WHERE CASE WHEN x&lt;&gt; 0 THEN y/x&gt; 1.5 ELSE false END;
14791479
</programlisting>
14801480
A CASE construct used in this fashion will defeat optimization attempts,
14811481
so it should only be done when necessary.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp