select * from DishCategory where DishTypeId in (select Cast(RestaurantDishCategory as int) as DishId from RestaurantInfo where RestaurantId=3)
运行时提示如下错误:
消息 245,级别 16,状态 1,第 1 行
在将 nvarchar 值 '1,3,4' 转换成数据类型 int 时失败。其中RestaurantDishCategory为varchar型的,DishTypeId为int型的,请各位大侠指点!