如何删除多行 varbinary 数据的第一个字节?

How can I remove the first byte multiple rows of varbinary data?

我修改了一个 VB 脚本来记录工作中最后一个操作的部分,但它在我想删除的开头添加了一个额外的字节。

SQL substring()(可能还有其他一些字符串函数)也适用于二进制类型。 像这样的东西可以工作:

update yourtable 
set data = substring(data, 2, len(data)) 
where substring(data, 1, 1) = char(0).

我不确定条件在哪里 - 你需要自己尝试。