【发布时间】:2017-01-24 22:59:40
【问题描述】:
我正在尝试将整数转换为二进制。这是我的代码
create table test
(test varbinary(8));
insert into test
select int_to_string(7, binary) as test;
这是我得到的错误:
错误 [HY000] 错误:必须为可变二进制属性指定大小。
【问题讨论】:
-
我认为您需要在
select int_to_string(7, binary)中指定base 2而不是binary