在 SQL Server 2008 中插入希伯来语值 [英] Inserting hebrew values in SQL Server 2008

查看:36
本文介绍了在 SQL Server 2008 中插入希伯来语值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将带有希伯来语 texy 的记录更新到数据库表中,它显示为??????".这是我的命令:

I've been trying to update a record with hebrew texy into a DB table, and it shown as "??????". Here's my command:

UPDATE HebrewTbl
   SET HebrewVal = N'ראשונה'
 WHERE Id = 1
GO

我在互联网上找到的所有解决方案都在开始时添加了 N,但在我的情况下问题仍然存在.

All solutions I found over the Internet ended up in adding that N in the beginning, but in my case the problem continues.

请指教.提前致谢

推荐答案

从评论中复制,因此可以根据 这篇文章.

Copied from comment so question can be set to answered per suggestion of this post.

将您的列设置为 nvarchar 并启用正确的排序规则以允许使用希伯来语字符.

Set your column to nvarchar and have the correct collation enabled to allow Hebrew characters.

这篇关于在 SQL Server 2008 中插入希伯来语值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆