Fork me on GitHub

nvarchar查询条件中不用加单引号''吗?

DataSet ds = wikibll.GetList(7, 1, string.Format(" isshow=1 and AskCountryid={0} ", countryid));

AskCountryid在sqlserver2005中是nvarchar(50),但是查询条件中不用加单引号''吗?好神奇!!

居然这样写是对的~

posted @ 2013-05-02 13:56  思考的大腿  阅读(417)  评论(0编辑  收藏  举报