Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果将参数添加到查询并将其大小设置为 -1,这意味着什么?
例子:
sqlCommand.Parameters.Add("@data", SqlDbType.VarChar, -1).Value = jsonData;
这是您需要为数据库中具有MAX IE 大小的字段设置的大小。varchar(max)/nvarchar(max)等
MAX
varchar(max)
nvarchar(max)