怎么乘不了了?大家帮我看看
DECLARE
@Quantity nvarchar(2),
@UnitPrice nvarchar(8),
@Total int(4)
set @Quantity='2'
set @UnitPrice='6'
set @Total=convert(int,@Quantity)*convert(int,@UnitPrice)
print @Total
服务器: 消息 2716,级别 16,状态 1,行 1
第 -3 个列或参数: 不能对数据类型 int 指定列宽度。
参数 '@TotalAmount' 的数据类型无效。