久久久久久久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

誰能解釋一下為什么開發人員在引號前加了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 前綴,字符串被轉換為默認代碼頁數據庫.此默認代碼頁可能無法識別某些字符.

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 會在使用該字符串之前將其轉換為當前數據庫的非 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

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

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

相關文檔推薦

Converting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(將每個子標記轉換為具有多個分隔符的單列-SQL Server (3))
How can I create a view from more than one table?(如何從多個表創建視圖?)
Create calculated value based on calculated value inside previous row(根據前一行內的計算值創建計算值)
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屋-程序員軟件開發技
Recursive t-sql query(遞歸 t-sql 查詢)
Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(將月份名稱轉換為日期/月份編號(問題和答案的組合))
主站蜘蛛池模板: 成人精品国产一区二区4080 | 免费av毛片 | 国产精品免费一区二区三区四区 | 精品亚洲二区 | 亚洲精品一区二区 | 91久久综合亚洲鲁鲁五月天 | 国产激情第一页 | 欧美成人h版在线观看 | 国产精品欧美大片 | 午夜影院网站 | 国产乱码精品1区2区3区 | 国产高清一区 | 亚洲精品中文字幕在线 | 99久久精品免费看国产四区 | 成人免费福利视频 | 免费99视频| 91精品国产综合久久小仙女图片 | 久久久精品视频免费 | 日本字幕在线观看 | 午夜视频在线 | 一级a毛片 | 色网站在线免费观看 | 久久久蜜桃一区二区人 | 久久机热 | 欧美激情欧美激情在线五月 | 国产美女在线看 | 国产精品一区二区三级 | 婷婷桃色网 | 人人看人人干 | 亚洲网站在线播放 | 久操国产 | 99精品在线| 亚洲高清视频一区二区 | 精品日本中文字幕 | 日本不卡免费新一二三区 | 拍真实国产伦偷精品 | 人人鲁人人莫人人爱精品 | 国产成在线观看免费视频 | 欧美在线a | 亚洲天堂精品久久 | 欧美不卡网站 |