1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-26 11:48:52 +03:00
2022-12-09 02:24:40 +00:00

34 lines
663 B
Plaintext

DROP DATABASE IF EXISTS unsigned_bug5712_db;
CREATE DATABASE unsigned_bug5712_db;
USE unsigned_bug5712_db;
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;
DROP DATABASE unsigned_bug5712_db;