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
Mathias Rangel Wulff edited this pageJul 1, 2015 ·4 revisions

KeywordIF

Conditional statement.

Syntax:

    IF expression THEN statement1 [ELSE statement2]

See also:CASE

Return one of two values

You can use the MySQL notation

SELECT IF(1>2,2,3);       -> 3

or the MsSQL notation

SELECT IIF(1>2,2,3);       -> 3

to get one out of two values.

© 2014-2026,Andrey Gershun &Mathias Rangel Wulff

Please help improve the documentation by opening a PR on thewiki repo

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp