<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NULLIF</title>
	<atom:link href="https://www.aitaocui.cn/tag/217752/feed" rel="self" type="application/rss+xml" />
	<link>https://www.aitaocui.cn</link>
	<description>翡翠玉石爱好者聚集地</description>
	<lastBuildDate>Fri, 25 Nov 2022 06:27:00 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>

<image>
	<url>https://www.aitaocui.cn/wp-content/uploads/2022/11/taocui.png</url>
	<title>NULLIF</title>
	<link>https://www.aitaocui.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>NULLIF(ORACLE函数)</title>
		<link>https://www.aitaocui.cn/article/329358.html</link>
					<comments>https://www.aitaocui.cn/article/329358.html#respond</comments>
		
		<dc:creator><![CDATA[陈怡安]]></dc:creator>
		<pubDate>Fri, 25 Nov 2022 06:27:00 +0000</pubDate>
				<category><![CDATA[百科]]></category>
		<category><![CDATA[NULLIF]]></category>
		<guid isPermaLink="false">https://www.aitaocui.cn/?p=329358</guid>

					<description><![CDATA[NULLIF是一种ORACLE函数，参数为expression1,expression2。 MySQL 中的 nullif 函数，接受两个参数。如果第一个参数等于第二个参数，则 n...]]></description>
										<content:encoded><![CDATA[</p>
<article>
<p>NULLIF是一种ORACLE函数，参数为expression1,expression2。</p>
<p>MySQL 中的 nullif 函数，接受两个参数。如果第一个参数等于第二个参数，则 nullif 函数返回 null，否则返回第一个参数。</p>
</p>
</article>
<article>
<h1>基本内容</h1>
<p>/n如果两个指定的表达式相等，则返回空值。如果两个表达式不相等，则 NULLIF 返回第一个 expression 的值。</p>
<p>语法NULLIF ( expression1 , expression2 )/n参数expression1,expression2/n常量、列名、函数、子查询或算术运算符、按位运算符以及字符串运算符的任意组合。/n返回类型与第一个 expression1 相同。/n输出结果:/n如果两个表达式不相等，NULLIF 返回第一个 expression1 的值。/n如果两个表达式相等，NULLIF 返回空值NULL。/nSQLServer函数是一样的功能</p>
<h1>例子</h1>
<p>PRINT NULLIF(&#x27;222&#x27;,&#x27;&#x27;) &#8211;返回222/n/nPRINT ISNULL(NULLIF(&#x27;222&#x27;,&#x27;222&#x27;),&#x27;23&#x27;) &#8211;返回23 证明返回的是null/n/n两个参数类型要相同</p>
</article>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
<div class="mt-3 mb-3" style="max-width: 770px;height: auto;">
                                    </div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aitaocui.cn/article/329358.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
