1.插入中文时候乱码:在中文内容前加 N
insert into table(col1,col2) values(N'中文',N'中文')
insert into table1(col1,col2) select N''+col1+'',N''+col2+'' from table2
2.查询中文数据时:在中文内容前加 N
select * from table where col1=N'中文'
3.存儲過程裏面:
......
declare @title nvarchar(100)
insert into test (a)values(N''+@title+'')