7
我有一個簡單的插入,但與希臘字母如何插入希臘字符到SQLSERVER表
INSERT INTO tmp (fname) VALUES ('ΚΩΝΣΤΑΝΤΙΝΟΣ')
我曾嘗試創建表的方法有兩種:
create table tmp (fname varchar(40))
和
create table tmp (fname nvarchar(40))
當我然後選擇數據:
select * from tmp
我得到:
?O?S???????S
我使用:
Microsoft SQL Server 2005 - 9.00.4060.00 (Intel X86)
Mar 17 2011 13:20:38
Copyright (c) 1988-2005 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
和
Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)
Oct 19 2012 13:38:57
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
它在兩個相同的。
我使用:
Microsoft SQL Server Management Studio 11.0.2100.60
創建表和插入數據等
如何獲得希臘字符正確地存儲或如果它們存儲到正確正確顯示,當我選擇他們?
當然 - 呃! - 謝謝 – Graham
提防SQL排序規則:主要是爲了向後兼容。請參閱[文檔](https://support.microsoft.com/en-us/kb/322112) – Paolo