setBytes Method (SQLServerCallableStatement)
Sets the designated parameter to the given array of byte values.
Syntax
public void setBytes(java.lang.String sCol,
byte[] b)
Parameters
sCol
A String that contains the parameter name.
b
An array of byte values.
Exceptions
Remarks
In a previous version of the driver, you could use SQLServerCallableStatement.setBytes to convert values between byte arrays and SQL Server data type date, time, datetime2, or datetimeoffset. Now, using this method with those data types will cause an exception indicating that the conversion is not supported.
This setBytes method is specified by the setBytes method in the java.sql.CallableStatement interface.
See Also
SQLServerCallableStatement Members
SQLServerCallableStatement Class
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho