📄 strict.result
字号:
-2147483648 00 NULL2147483647 4294967295-2147483648 02147483647 4294967295-2147483648 02147483647 42949672952 NULLNULL NULL-2147483648 02147483647 4294967295-2147483648 02147483647 4294967295-2147483648 02147483647 4294967295DROP TABLE t1;CREATE TABLE t1 (col1 BIGINT, col2 BIGINT UNSIGNED);INSERT INTO t1 VALUES(-9223372036854775808,0),(0,0),(9223372036854775807,18446744073709551615);INSERT INTO t1 VALUES('-9223372036854775808','0'),('9223372036854775807','18446744073709551615');INSERT INTO t1 VALUES(-9223372036854774000.0,0.0),(9223372036854775700.0,1844674407370954000.0);INSERT INTO t1 (col1) VALUES(-9223372036854775809);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col1) VALUES(9223372036854775808);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col2) VALUES(-1);ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col2) VALUES(18446744073709551616);ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col1) VALUES('-9223372036854775809');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col1) VALUES('9223372036854775808');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col2) VALUES('-1');ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col2) VALUES('18446744073709551616');ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col1) VALUES(-9223372036854785809.0);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col1) VALUES(9223372036854785808.0);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col2) VALUES(-1.0);ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col2) VALUES(18446744073709551616.0);ERROR 22003: Out of range value adjusted for column 'col2' at row 1UPDATE t1 SET col1 =col1 / 0 WHERE col1 > 0;ERROR 22012: Division by 0UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;ERROR 22012: Division by 0INSERT INTO t1 (col1) VALUES ('');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('a59b');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('1a');ERROR 01000: Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 (col1) VALUES ('2a');Warnings:Warning 1265 Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 values (1/0,1/0);Warnings:Error 1365 Division by 0Error 1365 Division by 0INSERT IGNORE INTO t1 VALUES(-9223372036854775809,-1),(9223372036854775808,18446744073709551616);Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1Warning 1264 Out of range value adjusted for column 'col1' at row 2Warning 1264 Out of range value adjusted for column 'col2' at row 2INSERT IGNORE INTO t1 VALUES('-9223372036854775809','-1'),('9223372036854775808','18446744073709551616');Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1Warning 1264 Out of range value adjusted for column 'col1' at row 2Warning 1264 Out of range value adjusted for column 'col2' at row 2INSERT IGNORE INTO t1 VALUES(-9223372036854785809.0,-1.0),(9223372036854785808.0,18446744073709551616.0);Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1Warning 1264 Out of range value adjusted for column 'col1' at row 2Warning 1264 Out of range value adjusted for column 'col2' at row 2UPDATE IGNORE t1 SET col2=1/NULL where col1=0;SELECT * FROM t1;col1 col2-9223372036854775808 00 NULL9223372036854775807 18446744073709551615-9223372036854775808 09223372036854775807 18446744073709551615-9223372036854774000 09223372036854775700 18446744073709540002 NULLNULL NULL-9223372036854775808 09223372036854775807 18446744073709551615-9223372036854775808 09223372036854775807 18446744073709551615-9223372036854775808 09223372036854775807 18446744073709551615DROP TABLE t1;CREATE TABLE t1 (col1 NUMERIC(4,2));INSERT INTO t1 VALUES (10.55),(10.5555),(0),(-10.55),(-10.5555),(11),(1e+01);Warnings:Note 1265 Data truncated for column 'col1' at row 2Note 1265 Data truncated for column 'col1' at row 5INSERT INTO t1 VALUES ('10.55'),('10.5555'),('-10.55'),('-10.5555'),('11'),('1e+01');Warnings:Note 1265 Data truncated for column 'col1' at row 2Note 1265 Data truncated for column 'col1' at row 4INSERT INTO t1 VALUES (101.55);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES (101);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES (-101.55);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES (1010.55);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES (1010);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES ('101.55');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES ('101');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES ('-101.55');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES ('-1010.55');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES ('-100E+1');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 VALUES ('-100E');ERROR HY000: Incorrect decimal value: '-100E' for column 'col1' at row 1UPDATE t1 SET col1 =col1 * 50000 WHERE col1 =11;ERROR 22003: Out of range value adjusted for column 'col1' at row 6UPDATE t1 SET col1 =col1 / 0 WHERE col1 > 0;ERROR 22012: Division by 0UPDATE t1 SET col1= MOD(col1,0) WHERE col1 > 0;ERROR 22012: Division by 0INSERT INTO t1 (col1) VALUES ('');ERROR HY000: Incorrect decimal value: '' for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('a59b');ERROR HY000: Incorrect decimal value: 'a59b' for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('1a');ERROR HY000: Incorrect decimal value: '1a' for column 'col1' at row 1INSERT IGNORE INTO t1 (col1) VALUES ('2a');Warnings:Note 1265 Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 values (1/0);Warnings:Error 1365 Division by 0INSERT IGNORE INTO t1 VALUES(1000),(-1000);Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col1' at row 2INSERT IGNORE INTO t1 VALUES('1000'),('-1000');Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col1' at row 2INSERT IGNORE INTO t1 VALUES(1000.0),(-1000.0);Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col1' at row 2UPDATE IGNORE t1 SET col1=1/NULL where col1=0;SELECT * FROM t1;col110.5510.56NULL-10.55-10.5611.0010.0010.5510.56-10.55-10.5611.0010.002.00NULL99.99-99.9999.99-99.9999.99-99.99DROP TABLE t1;CREATE TABLE t1 (col1 FLOAT, col2 FLOAT UNSIGNED);INSERT INTO t1 VALUES (-1.1E-37,0),(+3.4E+38,+3.4E+38);INSERT INTO t1 VALUES ('-1.1E-37',0),('+3.4E+38','+3.4E+38');INSERT INTO t1 (col1) VALUES (3E-46);INSERT INTO t1 (col1) VALUES (+3.4E+39);ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col2) VALUES (-1.1E-3);ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col1) VALUES ('+3.4E+39');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col2) VALUES ('-1.1E-3');ERROR 22003: Out of range value adjusted for column 'col2' at row 1UPDATE t1 SET col1 =col1 * 5000 WHERE col1 > 0;ERROR 22003: Out of range value adjusted for column 'col1' at row 2UPDATE t1 SET col2 =col2 / 0 WHERE col2 > 0;ERROR 22012: Division by 0UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0;ERROR 22012: Division by 0INSERT INTO t1 (col1) VALUES ('');ERROR 01000: Data truncated for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('a59b');ERROR 01000: Data truncated for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('1a');ERROR 01000: Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 (col1) VALUES ('2a');Warnings:Warning 1265 Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 (col1) VALUES (1/0);Warnings:Error 1365 Division by 0INSERT IGNORE INTO t1 VALUES (+3.4E+39,-3.4E+39);Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1INSERT IGNORE INTO t1 VALUES ('+3.4E+39','-3.4E+39');Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1SELECT * FROM t1;col1 col2-1.1e-37 03.4e+38 3.4e+38-1.1e-37 03.4e+38 3.4e+380 NULL2 NULLNULL NULL3.40282e+38 03.40282e+38 0DROP TABLE t1;CREATE TABLE t1 (col1 DOUBLE PRECISION, col2 DOUBLE PRECISION UNSIGNED);INSERT INTO t1 VALUES (-2.2E-307,0),(2E-307,0),(+1.7E+308,+1.7E+308);INSERT INTO t1 VALUES ('-2.2E-307',0),('-2E-307',0),('+1.7E+308','+1.7E+308');INSERT INTO t1 (col1) VALUES (-2.2E-330);INSERT INTO t1 (col1) VALUES (+1.7E+309);Got one of the listed errorsINSERT INTO t1 (col2) VALUES (-1.1E-3);ERROR 22003: Out of range value adjusted for column 'col2' at row 1INSERT INTO t1 (col1) VALUES ('+1.8E+309');ERROR 22003: Out of range value adjusted for column 'col1' at row 1INSERT INTO t1 (col2) VALUES ('-1.2E-3');ERROR 22003: Out of range value adjusted for column 'col2' at row 1UPDATE t1 SET col1 =col1 * 5000 WHERE col1 > 0;ERROR 22003: Out of range value adjusted for column 'col1' at row 3UPDATE t1 SET col2 =col2 / 0 WHERE col2 > 0;ERROR 22012: Division by 0UPDATE t1 SET col2= MOD(col2,0) WHERE col2 > 0;ERROR 22012: Division by 0INSERT INTO t1 (col1) VALUES ('');ERROR 01000: Data truncated for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('a59b');ERROR 01000: Data truncated for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('1a');ERROR 01000: Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 (col1) VALUES ('2a');Warnings:Warning 1265 Data truncated for column 'col1' at row 1INSERT IGNORE INTO t1 (col1) values (1/0);Warnings:Error 1365 Division by 0INSERT IGNORE INTO t1 VALUES (+1.9E+309,-1.9E+309);ERROR 22007: Illegal double '1.9E+309' value found during parsingINSERT IGNORE INTO t1 VALUES ('+2.0E+309','-2.0E+309');Warnings:Warning 1264 Out of range value adjusted for column 'col1' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1Warning 1264 Out of range value adjusted for column 'col2' at row 1SELECT * FROM t1;col1 col20 01e-303 01.7e+308 1.7e+3080 0-2e-307 01.7e+308 1.7e+3080 NULL2 NULLNULL NULL1.79769313486232e+308 0DROP TABLE t1;CREATE TABLE t1 (col1 CHAR(5), col2 VARCHAR(6));INSERT INTO t1 VALUES ('hello', 'hello'),('he', 'he'),('hello ', 'hello ');INSERT INTO t1 (col1) VALUES ('hellobob');ERROR 22001: Data too long for column 'col1' at row 1INSERT INTO t1 (col2) VALUES ('hellobob');ERROR 22001: Data too long for column 'col2' at row 1INSERT INTO t1 (col2) VALUES ('hello ');Warnings:Note 1265 Data truncated for column 'col2' at row 1UPDATE t1 SET col1 ='hellobob' WHERE col1 ='he';ERROR 22001: Data too long for column 'col1' at row 2UPDATE t1 SET col2 ='hellobob' WHERE col2 ='he';ERROR 22001: Data too long for column 'col2' at row 2INSERT IGNORE INTO t1 VALUES ('hellobob', 'hellobob');Warnings:Warning 1265 Data truncated for column 'col1' at row 1Warning 1265 Data truncated for column 'col2' at row 1UPDATE IGNORE t1 SET col2 ='hellotrudy' WHERE col2 ='he';Warnings:Warning 1265 Data truncated for column 'col2' at row 2SELECT * FROM t1;col1 col2hello hellohe hellothello hello NULL hello hello hellobDROP TABLE t1;CREATE TABLE t1 (col1 enum('red','blue','green'));INSERT INTO t1 VALUES ('red'),('blue'),('green');INSERT INTO t1 (col1) VALUES ('yellow');ERROR 01000: Data truncated for column 'col1' at row 1INSERT INTO t1 (col1) VALUES ('redd');ERROR 01000: Data truncated for column 'col1' at row 1INSERT INTO t1 VALUES ('');ERROR 01000: Data truncated for column 'col1' at row 1UPDATE t1 SET col1 ='yellow' WHERE col1 ='green';ERROR 01000: Data truncated for column 'col1' at row 3INSERT IGNORE INTO t1 VALUES ('yellow');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -