strict.result
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 1,403 行 · 第 1/4 页
RESULT
1,403 行
INSERT 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 col2-2.2e-307 01e-303 01.7e+308 1.7e+308-2.2e-307 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');Warnings:Warning 1265 Data truncated for column 'col1' at row 1UPDATE IGNORE t1 SET col1 ='yellow' WHERE col1 ='blue';Warnings:Warning 1265 Data truncated for column 'col1' at row 2SELECT * FROM t1;col1redgreenDROP TABLE t1;CREATE TABLE t1 (col1 INT NOT NULL, col2 CHAR(5) NOT NULL, col3 DATE NOT NULL);INSERT INTO t1 VALUES (100, 'hello', '2004-08-20');INSERT INTO t1 (col1,col2,col3) VALUES (101, 'hell2', '2004-08-21');INSERT INTO t1 (col1,col2,col3) VALUES (NULL, '', '2004-01-01');ERROR 23000: Column 'col1' cannot be nullINSERT INTO t1 (col1,col2,col3) VALUES (102, NULL, '2004-01-01');ERROR 23000: Column 'col2' cannot be nullINSERT INTO t1 VALUES (103,'',NULL);ERROR 23000: Column 'col3' cannot be nullUPDATE t1 SET col1=NULL WHERE col1 =100;ERROR 23000: Column 'col1' cannot be nullUPDATE t1 SET col2 =NULL WHERE col2 ='hello';ERROR 23000: Column 'col2' cannot be nullUPDATE t1 SET col2 =NULL where col3 IS NOT NULL;ERROR 23000: Column 'col2' cannot be nullINSERT IGNORE INTO t1 values (NULL,NULL,NULL);Warnings:Warning 1048 Column 'col1' cannot be nullWarning 1048 Column 'col2' cannot be nullWarning 1048 Column 'col3' cannot be nullSELECT * FROM t1;col1 col2 col3100 hello 2004-08-20101 hell2 2004-08-210 0000-00-00DROP TABLE t1;CREATE TABLE t1 (col1 INT NOT NULL default 99, col2 CHAR(6) NOT NULL);SHOW CREATE TABLE t1;Table Create Tablet1 CREATE TABLE "t1" ( "col1" int(11) NOT NULL default '99', "col2" char(6) NOT NULL)INSERT INTO t1 VALUES (1, 'hello');INSERT INTO t1 (col2) VALUES ('hello2');INSERT INTO t1 (col2) VALUES (NULL);ERROR 23000: Column 'col2' cannot be nullINSERT INTO t1 (col1) VALUES (2);ERROR HY000: Field 'col2' doesn't have a default valueINSERT INTO t1 VALUES(default(col1),default(col2));ERROR HY000: Field 'col2' doesn't have a default valueINSERT INTO t1 (col1) SELECT 1;ERROR HY000: Field 'col2' doesn't have a default valueINSERT INTO t1 SELECT 1,NULL;ERROR 23000: Column 'col2' cannot be nullINSERT IGNORE INTO t1 values (NULL,NULL);Warnings:Warning 1048 Column 'col1' cannot be nullWarning 1048 Column 'col2' cannot be nullINSERT IGNORE INTO t1 (col1) values (3);Warnings:Warning 1364 Field 'col2' doesn't have a default valueINSERT IGNORE INTO t1 () values ();Warnings:Warning 1364 Field 'col2' doesn't have a default valueSELECT * FROM t1;col1 col21 hello99 hello20 3 99 DROP TABLE t1;set sql_mode='traditional';create table t1 (charcol char(255), varcharcol varchar(255),binarycol binary(255), varbinarycol varbinary(255), tinytextcol tinytext,tinyblobcol tinyblob);insert into t1 (charcol) values (repeat('x',256));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?