15670430创建于 2020年12月28日历史提交
--
-- case 1: float type
--
CREATE TABLE cmpr_float ( 
	RR_ID int,
	R0_ID float NOT NULL,
	R1_ID float NOT NULL,
	R2_ID float NOT NULL,
	R3_ID float NOT NULL,
	R4_ID float NOT NULL,
	R5_ID float NOT NULL,
	R6_ID float NOT NULL,
	R7_ID float NOT NULL,
	R8_ID float NOT NULL,
	R9_ID float NOT NULL,
	R10_ID float NOT NULL,
	R11_ID float NOT NULL,
	R12_ID float NOT NULL,
	R13_ID float NOT NULL,
	R14_ID float NOT NULL,
	R15_ID float NOT NULL,
	R16_ID float NOT NULL,
	R17_ID float NOT NULL,
	R18_ID float NOT NULL,
	R19_ID float NOT NULL
) ;

CREATE TABLE cmpr_float_raw ( 
	RR_ID int,
	R0_ID float NOT NULL,
	R1_ID float NOT NULL,
	R2_ID float NOT NULL,
	R3_ID float NOT NULL,
	R4_ID float NOT NULL,
	R5_ID float NOT NULL,
	R6_ID float NOT NULL,
	R7_ID float NOT NULL,
	R8_ID float NOT NULL,
	R9_ID float NOT NULL,
	R10_ID float NOT NULL,
	R11_ID float NOT NULL,
	R12_ID float NOT NULL,
	R13_ID float NOT NULL,
	R14_ID float NOT NULL,
	R15_ID float NOT NULL,
	R16_ID float NOT NULL,
	R17_ID float NOT NULL,
	R18_ID float NOT NULL,
	R19_ID float NOT NULL
);

COPY cmpr_float FROM '@abs_srcdir@/data/cmpr_float.data';
COPY cmpr_float_raw FROM '@abs_srcdir@/data/cmpr_float.data';
SELECT (SELECT COUNT(*) FROM cmpr_float) - (SELECT COUNT(*) FROM cmpr_float_raw);
(SELECT * FROM cmpr_float_raw) MINUS ALL (SELECT * FROM cmpr_float);
(SELECT * FROM cmpr_float) MINUS ALL (SELECT * FROM cmpr_float_raw);
DROP TABLE cmpr_float;
DROP TABLE cmpr_float_raw;