mysql.result
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 182 行
RESULT
182 行
drop table if exists t1;create table t1(a int);insert into t1 values(1);ERROR at line 9: DELIMITER must be followed by a 'delimiter' character or stringTest default delimiter ;a1Test delimiter without argTest delimiter :a1Test delimiter :a1Test delimiter :;a1Test delimiter //a1Test delimiter MySQLa1Test delimiter delimitera1Tables_in_testt1t2t3Tables_in_testt1_Test delimiter : from command linea1_Test delimiter :; from command linea1_Test 'go' command(vertical output) G*************************** 1. row ***************************a: 1_Test 'go' command ga1drop table t1;create table t1(a int);lock tables t1 write;database()testunlock tables;drop table t1;+----------------------+------------+--------+| concat('>',col1,'<') | col2 | col3 |+----------------------+------------+--------+| >a < | b | 123421 | | >a < | 0123456789 | 4 | | >abcd< | | 4 | +----------------------+------------+--------++-------------------+| __tañgè Ñãmé |+-------------------+| John Doe | +-------------------++-------------------+| John Doe |+-------------------+| __tañgè Ñãmé | +-------------------++------+------+---------------------------+| i | j | k |+------+------+---------------------------+| 1 | NULL | NULL | | NULL | NULL | <-----------------------> | | NULL | NULL | <----- | | NULL | NULL | Τη γλώσσα | | NULL | NULL | ᛖᚴ ᚷᛖᛏ | +------+------+---------------------------+i j kNULL 1 NULLField Type Null Key Default Extrai int(11) YES NULL j int(11) NO NULL k int(11) YES NULL +------+---+------+| i | j | k |+------+---+------+| NULL | 1 | NULL | +------+---+------++-------+---------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Extra |+-------+---------+------+-----+---------+-------+| i | int(11) | YES | | NULL | | | j | int(11) | NO | | NULL | | | k | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+i s11 x2 NULL3 +------+------+| i | s1 |+------+------+| 1 | x | | 2 | NULL | | 3 | | +------+------+unhex('zz')NULL+-------------+| unhex('zz') |+-------------+| NULL | +-------------+create table t1(a int, b varchar(255), c int);Field Type Null Key Default Extraa int(11) YES NULL b varchar(255) YES NULL c int(11) YES NULL Field Type Null Key Default Extraa int(11) YES NULL b varchar(255) YES NULL c int(11) YES NULL drop table t1;11ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1ERROR at line 1: USE must be followed by a database name\\\';';create table t17583 (a int);insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);insert into t17583 select a from t17583;insert into t17583 select a from t17583;insert into t17583 select a from t17583;insert into t17583 select a from t17583;insert into t17583 select a from t17583;insert into t17583 select a from t17583;insert into t17583 select a from t17583;select count(*) from t17583;count(*)1280drop table t17583;Test connect without db- or host-name => reconnectTest connect with dbname only => new dbname, old hostnameERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connecttest' at line 1Test connect with _invalid_ dbname only => new invalid dbname, old hostnameERROR 1049 (42000) at line 1: Unknown database 'invalid'ERROR 1049 (42000) at line 1: Unknown database 'invalid'Test connect with dbname + hostnameTest connect with dbname + _invalid_ hostnameERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)ERROR 2005 (HY000) at line 1: Unknown MySQL server host 'invalid_hostname' (errno)The commands reported in the bug reportERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyril has found a bug :)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)Too long dbnameERROR 1049 (42000) at line 1: Unknown database 'test_really_long_dbnamexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'Too long hostnameERROR 2005 (HY000) at line 1: Unknown MySQL server host 'cyrils_superlonghostnameXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' (errno)11ERROR at line 1: DELIMITER cannot contain a backslash characterERROR at line 1: DELIMITER cannot contain a backslash character1111End of 5.0 tests
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?