有时客户需要流水数据,当导出为excel的时候,客户编号等很长数字的栏位,被excel变成科学记数法,无法正常查看. 因此,需要将Oracle/MySQL中的decimal/int 转 varchar,这样在excel中就可以放心查看了. Oracle的转换方法: 1.新建表,并插入数据 drop table test purge;create table test(id number);insert into test values(13913613345);select * from tes…
function [ binary,decimal ] = num2binary16( number ) %The IEEE 754 standard specifies a binary16 as having the following format: %Sign bit: 1 bit %Exponent width: 5 bits %Significand precision: 11 bits (10 explicitly stored) %S EEEEE MMMMMMMMMM %INPU…
来自:http://topic.csdn.net/u/20080704/08/b2b8c42f-b0d6-4cda-98b1-6e4a279b4ff8.html 感谢楼主 函数 SQLServer和Oracle的常用函数对比 1.绝对值 S:select abs(-1) value O:select abs(-1) value from dual 2.取整(大) S:select ceiling(-1.001) value O:select ceil(-1.001) value fro…
问题在于,远程库是nvarchar2类型,本地是number类型,同步的时候有问题. create or replace trigger tri_org_department after insert or update on bjlt.sys_org for each row declare v_uuid ); v_id ); begin v_uuid:=sys_guid(); v_id:=:new.ID; if inserting then insert into KEYMS.KEY_DEP…