表t中 a 字段 nchar(10) 使用insert语句插入英文没有问题,插入中文后,搜索出来的结果 该列显示为?? ,这是为什么啊 ?不支持中文么?

解决方案 »

  1.   

    create table tb(a nchar(10))
    insert into tb values('中国')
    insert into tb values('中国人民解放军')
    insert into tb values('中国人民解放军驻香港')select * from tb
    /*
    a
    中国        
    中国人民解放军   
    中国人民解放军驻香港(3 行受影响)
      

  2.   


    select * from tb--中国人民解放军驻台湾
      

  3.   

    create table tb(a nchar(10))
    insert into tb values(N'中国')
    insert into tb values(N'中国人民解放军')
    insert into tb values(N'中国人民解放军驻香港')