1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-23 07:05:36 +03:00
2022-12-09 02:24:40 +00:00

31 lines
532 B
Plaintext

USE tpch1;
DROP TABLE IF EXISTS bug5712;
CREATE TABLE bug5712 (`time_tk` INT(11) UNSIGNED NOT NULL) ENGINE=Columnstore DEFAULT CHARSET=latin1;
INSERT INTO bug5712 VALUES
(2013113023),
(1900010100),
(2199123100),
(2199123100),
(2147483646),
(2147483647),
(2147483648);
SELECT LEFT(time_tk,6) AS time_tk_left FROM bug5712;
time_tk_left
201311
190001
219912
219912
214748
214748
214748
SELECT RIGHT(time_tk,6) AS time_tk_right FROM bug5712;
time_tk_right
113023
010100
123100
123100
483646
483647
483648
DROP TABLE IF EXISTS bug5712;