字节数= 1; 加号码); // form .cs
public static int Add( byte? order)
{
arParams[0] = new SqlParameter("@number", (number.HasValue) ? ((object)number) : DBNull.Value);
// stored procedure call is made which takes paramaters,
}
存储过程看起来像这样
@number tinyint
AS
BEGIN
IF @number IS NOT NULL
BEGIN
UPDATE
table1
SET
number = number + 1
WHERE
id=13
END
INSERT INTO
table1
(
number
)
VALUES
(
number=@number
)
///////为什么我得到这个错误可以任何人说明,我如何解决这个