SQL oracle bigint

来源:百度知道 编辑:UC知道 时间:2024/05/13 00:14:30
SQL server的bigint数据类型在Oracle中怎么转换呢?
我使用透明网关直接访问SQL server数据库,在SQL server中字段id 是 bigint类型
我在oracle中
select "id" from dw@a_to_b where "id"=30967
id
----------
0
请问哪位大虾知道怎么将bigint数据类型转换
不加 WHERE 的话 select 出来 全是0

VARIABLE_ID
-----------
0
0
0
0
0
0
0
0
0
0
0

VARIABLE_ID
-----------
0
0
0
0
0
0
0
0
0
0
0

感觉应该是在oracle端创建相应的表,里面有lob字段,lob对应bigint进行转换,可以通过在SQLServer端进行导出,然后在oracle端用impdp数据泵导入。我想oracle会自动进行转换的

select "id" from dw@a_to_b where id=30967
后面的ID不需要加双引号吧

类型转成long型试试