急急急,在线等待!!!sql 7.0 中的问题?? (cast(RegionFilter as int) & cast(@RegionFilter as int)) <> 0) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 左边操作数 右边操作数 binary int、smallint 或 tinyint bit int、smallint、tinyint 或 bit int int、smallint、tinyint、binary 或 varbinary smallint int、smallint、tinyint、binary 或 varbinary tinyint int、smallint、tinyint、binary 或 varbinary varbinary int、smallint 或 tinyint 所以还是转换为int以后再用位操作。 溢出呢?那两个都在十位以上啊 bigint也受不了况且7.0没有bigint 还是不行 binary varbinary还是同样错误 做了个例子,供参考declare @a decimal(38,0)declare @b decimal(38,0)declare @c binary(32)declare @d binary(32)declare @e1 binary(8)declare @e2 binary(8)declare @e3 binary(8)declare @e4 binary(8)declare @result decimal(38,0)select @a=12345678901234567890123456789012345678select @b=23456789012345678901234567890123456788select @c=convert(binary(32),@a)select @d=convert(binary(32),@b)select @e1=convert(int,substring(@c,1,8))|substring(@d,1,8)select @e2=convert(int,substring(@c,9,8))|substring(@d,9,8)select @e3=convert(int,substring(@c,17,8))|substring(@d,17,8)select @e4=convert(int,substring(@c,25,8))|substring(@d,25,8)select @cselect @dselect @e1,@e2,@e3,@e4select @e1+@e2+@e3+@e4select @result=convert(decimal(38,0),@e1+@e2+@e3+@e4)select @result SQL server 的具体问题,求答案和讲解~谢过~~(新人) 存储过程的操作 谢谢各位午休的朋友 发日记散分,Sql初级设计实例:小说网 关于取出每个部门工资最高的前三人的问题 多表连接 XML数据字段的查询 使用PoolingDataSource的问题 触发器问题,检查更新表的数据 关于数据库表格的权限设计问题,数据库是sqlserver2000,前台是delphi!!! 请问如何把以DAT格式备份的数据还原到SQL SERVER数据库中???请各位高手进来帮帮小弟! ::500分:: 这样的约束约束行吗?
binary int、smallint 或 tinyint
bit int、smallint、tinyint 或 bit
int int、smallint、tinyint、binary 或 varbinary
smallint int、smallint、tinyint、binary 或 varbinary
tinyint int、smallint、tinyint、binary 或 varbinary
varbinary int、smallint 或 tinyint
declare @b decimal(38,0)
declare @c binary(32)
declare @d binary(32)
declare @e1 binary(8)
declare @e2 binary(8)
declare @e3 binary(8)
declare @e4 binary(8)
declare @result decimal(38,0)select @a=12345678901234567890123456789012345678
select @b=23456789012345678901234567890123456788select @c=convert(binary(32),@a)
select @d=convert(binary(32),@b)
select @e1=convert(int,substring(@c,1,8))|substring(@d,1,8)
select @e2=convert(int,substring(@c,9,8))|substring(@d,9,8)
select @e3=convert(int,substring(@c,17,8))|substring(@d,17,8)
select @e4=convert(int,substring(@c,25,8))|substring(@d,25,8)
select @c
select @d
select @e1,@e2,@e3,@e4
select @e1+@e2+@e3+@e4
select @result=convert(decimal(38,0),@e1+@e2+@e3+@e4)select @result