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

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

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

問題描述

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

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ā)人員在引號前加了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)換為默認代碼頁數(shù)據(jù)庫.此默認代碼頁可能無法識別某些字符.

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 標準中的國家語言,必須大寫.如果不使用 N 作為 Unicode 字符串常量的前綴,SQL Server 會在使用該字符串之前將其轉(zhuǎn)換為當前數(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.

這里有更詳細的信息

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

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

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

相關(guān)文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標記轉(zhuǎn)換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創(chuàng)建視圖?)
Create calculated value based on calculated value inside previous row(根據(jù)前一行內(nèi)的計算值創(chuàng)建計算值)
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?(如何將表格的前兩列堆疊成一列,但也僅將第三列與第一列配對?) - IT屋-程序員軟件開發(fā)技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉(zhuǎn)換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 国产精品成人久久久久a级 久久蜜桃av一区二区天堂 | 国产午夜精品一区二区 | 欧美专区在线观看 | 国产欧美视频一区二区三区 | 日韩久久精品视频 | 国产999精品久久久久久绿帽 | 欧美激情国产日韩精品一区18 | 成人区精品一区二区婷婷 | 亚洲一页| 午夜天堂 | 欧美亚洲高清 | 免费观看毛片 | 黄视频网址 | 激情福利视频 | 91毛片网| 欧美成人一级 | 中文字幕亚洲视频 | 成年人在线电影 | 精品久久久久久 | 亚洲一区二区三区在线 | 亚洲国产精品va在线看黑人 | 玖玖在线免费视频 | 武道仙尊动漫在线观看 | 精品一区二区三区在线观看国产 | 天天久久| 蜜臀久久99精品久久久久久宅男 | 日本三级电影免费 | 久久专区 | 二区三区视频 | 亚洲精品视频免费看 | 国产激情一区二区三区 | 久久99精品久久久久久国产越南 | 久久久久无码国产精品一区 | 羞羞视频在线观看免费观看 | 毛片毛片毛片毛片 | 久久综合香蕉 | 91在线看片 | 国产精品毛片一区二区在线看 | 日本午夜在线视频 | 福利片一区二区 | 久久久精品一区 |