简体   繁体   English

使用C#的Marathi语言从SQL检索数据

[英]Retrieve data from SQL in Marathi Language in C#

请找到表的图像 I am developing a windows application based using C#. 我正在使用C#开发Windows应用程序。 I want to take input from user in Marathi language and save the same in SQL server database. 我想以Marathi语言从用户那里获取输入,并将其保存在SQL Server数据库中。 Also retrieve the data from SQL server in Marathi language. 还以Marathi语言从SQL Server检索数据。 I tried using following query but it didn't worked. 我尝试使用以下查询,但没有成功。 So my question is how can I save and retrieve it as it is? 所以我的问题是如何保存和检索它呢?

For example: 例如:

Select Company from Master_Item where Item_Name =  'मोबाईल'

You should use N before the value and the datatype should be nvarchar . 您应该在值之前使用N ,数据类型应为nvarchar

Select Company from Master_Item where Item_Name =  N'मोबाईल'

Source: http://www.codeproject.com/Questions/305931/Save-Hindi-Marthi-Content-in-Sql-Server-database 来源: http : //www.codeproject.com/Questions/305931/Save-Hindi-Marthi-Content-in-Sql-Server-database

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM