久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

“N"是什么意思?在 SQL Server 分配中的引號(hào)之前

What is the meaning of an quot;Nquot; before quotes in a SQL Server assignment?(“N是什么意思?在 SQL Server 分配中的引號(hào)之前?)
本文介紹了“N"是什么意思?在 SQL Server 分配中的引號(hào)之前?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在查看的代碼是這樣的:

The code I am looking at is this:

        SET @Message = N'Question result is ''' + @CurrentResult + '''. It should be unmarked or incorrect';
        THROW 50002,@Message,1

誰能解釋一下為什么開發(fā)人員在引號(hào)前加了N"?

Can someone explain why the developer but "N" before the quotes?

推薦答案

來自 MSDN在備注部分

說字符串是 Nvarchar 類型并且可以有 unicode 字符

Saying that string is of Nvarchar type and can have unicode charcters

用字母 N 前綴 Unicode 字符串常量.沒有N 前綴,字符串被轉(zhuǎn)換為默認(rèn)代碼頁數(shù)據(jù)庫.此默認(rèn)代碼頁可能無法識(shí)別某些字符.

Prefix Unicode character string constants with the letter N. Without the N prefix, the string is converted to the default code page of the database. This default code page may not recognize certain characters.

"N" 前綴代表 SQL-92 標(biāo)準(zhǔn)中的國家語言,必須大寫.如果不使用 N 作為 Unicode 字符串常量的前綴,SQL Server 會(huì)在使用該字符串之前將其轉(zhuǎn)換為當(dāng)前數(shù)據(jù)庫的非 Unicode 代碼頁.

The "N" prefix stands for National Language in the SQL-92 standard, and must be uppercase. If you do not prefix a Unicode string constant with N, SQL Server will convert it to the non-Unicode code page of the current database before it uses the string.

這里有更詳細(xì)的信息

在處理 Unicode 字符串常量時(shí),必須在所有 Unicode 字符串前加上前綴 NSQL Server

這篇關(guān)于“N"是什么意思?在 SQL Server 分配中的引號(hào)之前?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個(gè)子標(biāo)記轉(zhuǎn)換為具有多個(gè)分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個(gè)表創(chuàng)建視圖?)
Create calculated value based on calculated value inside previous row(根據(jù)前一行內(nèi)的計(jì)算值創(chuàng)建計(jì)算值)
How do I stack the first two columns of a table into a single column, but also pair third column with the first column only?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對(duì)?) - IT屋-程序員軟件開發(fā)技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉(zhuǎn)換為日期/月份編號(hào)(問題和答案的組合))
主站蜘蛛池模板: 亚洲美女一区二区三区 | 狠狠亚洲 | 亚洲欧美一区二区三区1000 | 久久中文字幕一区 | 亚洲成人毛片 | 亚洲成人自拍 | 羞羞视频网站在线观看 | 国产精品一区二区视频 | 天天躁日日躁性色aⅴ电影 免费在线观看成年人视频 国产欧美精品 | 精品久久久久久久久久久 | 亚洲一区二区在线播放 | 日韩欧美一区二区三区 | 91精品国产综合久久久久久丝袜 | 91一区二区 | 国产在线a | 精品久久久999 | 黄色免费网 | 亚洲不卡在线观看 | 一区二区国产精品 | 国产乱码久久久久久一区二区 | 每日更新av | 国产精品久久久亚洲 | 欧美性一区二区三区 | 欧美一级片在线 | 日韩av在线免费 | 手机看片1| 成人性生交大免费 | 91在线观看 | 一区二区福利视频 | 亚洲免费在线播放 | 五月婷婷丁香婷婷 | 一区二区蜜桃 | 91www在线观看 | www.日本国产 | h片免费在线观看 | 精品伦精品一区二区三区视频 | 国产精品久久久久久久岛一牛影视 | japan21xxxxhd美女| 欧美一区二区三区免费在线观看 | 国产在线精品区 | 亚洲精品天堂 |