人大金仓更新decimal字段,小数位丢失 返回
热忱回答(7)
-
fate sta VIP01个月前
提供
1、金仓用的什么模式
2、建表语句
0 回复 -
syddd VIP01个月前
从mysql迁移到金仓的
CREATE TABLE public.equipment_param (
id bigint NOT NULL,
code character varying(50 char),
name character varying(50 char),
display_name character varying(50 char),
measure_unit character varying(50 char),
data_code character varying(50 char),
on_color character varying(50 char),
off_color character varying(50 char),
remark character varying(50 char),
created_person character varying(50 char),
updated_person character varying(50 char),
created_at datetime,
updated_at datetime,
data_time datetime,
data_value numeric(18,6),
decimal_places smallint DEFAULT 0 NOT NULL,
data_signal integer,
receive_flag integer,
read_write integer,
data_type integer,
is_online boolean,
equipment_id bigint,
is_enable boolean
);
0 回复 -
fate sta VIP01个月前
用 decimal 类型试一下
0 回复 -
fate sta VIP01个月前
//可以查看安装的模式
show database_mode;
//查看版本号
SELECT version();
另外发一下版本号 文本
0 回复 -
syddd VIP01个月前
类型改成decimal保存后自动变为numeric
version
--------------------------------------------------------------------------------
--------------------------------------
KingbaseES V008R006C008B0020 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.
5 20150623 (Red Hat 4.8.5-28), 64-bit
0 回复 -
fate sta VIP01个月前
已经在找金仓处理了
0 回复 -
fate sta VIP01个月前
SqlSugarCore 5.1.4.168-preview19
更新到最新预览版本,我已手动支持
0 回复