⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 row.result

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 RESULT
字号:
drop table if exists t1;select (1,2,3) IN ((3,2,3), (1,2,3), (1,3,3));(1,2,3) IN ((3,2,3), (1,2,3), (1,3,3))1select row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3));row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3))0select row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3))1select row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3))0select row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a'));row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a'))1Warnings:Warning	1292	Truncated incorrect DECIMAL value: 'a'Warning	1292	Truncated incorrect INTEGER value: 'a'select row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3));row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3))1Warnings:Warning	1292	Truncated incorrect INTEGER value: 'a'select row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3));row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3))1select row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3))1select row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3))0select row('b',1.5,3) IN (row('b',NULL,3), row('a',1.5,3), row(1,3,3));row('b',1.5,3) IN (row('b',NULL,3), row('a',1.5,3), row(1,3,3))NULLselect row('b',1.5,3) IN (row('b',NULL,4), row('a',1.5,3), row(1,3,3));row('b',1.5,3) IN (row('b',NULL,4), row('a',1.5,3), row(1,3,3))0select (1,2,(3,4)) IN ((3,2,(3,4)), (1,2,(3,4)));(1,2,(3,4)) IN ((3,2,(3,4)), (1,2,(3,4)))1select row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,4));ERROR 21000: Operand should contain 2 column(s)select row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)));row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)))NULLexplain extended select row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)));id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra1	SIMPLE	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables usedWarnings:Note	1003	select ((1,2,(3,4)) in ((3,2,(3,4)),(1,2,(3,NULL)))) AS `row(1,2,row(3,4)) IN (row(3,2,row(3,4)), row(1,2,row(3,NULL)))`SELECT (1,2,3)=(0,NULL,3);(1,2,3)=(0,NULL,3)0SELECT (1,2,3)=(1,NULL,3);(1,2,3)=(1,NULL,3)NULLSELECT (1,2,3)=(1,NULL,0);(1,2,3)=(1,NULL,0)0SELECT ROW(1,2,3)=ROW(1,2,3);ROW(1,2,3)=ROW(1,2,3)1SELECT ROW(2,2,3)=ROW(1+1,2,3);ROW(2,2,3)=ROW(1+1,2,3)1SELECT ROW(1,2,3)=ROW(1+1,2,3);ROW(1,2,3)=ROW(1+1,2,3)0SELECT ROW(1,2,3)<ROW(1+1,2,3);ROW(1,2,3)<ROW(1+1,2,3)1SELECT ROW(1,2,3)>ROW(1+1,2,3);ROW(1,2,3)>ROW(1+1,2,3)0SELECT ROW(1,2,3)<=ROW(1+1,2,3);ROW(1,2,3)<=ROW(1+1,2,3)1SELECT ROW(1,2,3)>=ROW(1+1,2,3);ROW(1,2,3)>=ROW(1+1,2,3)0SELECT ROW(1,2,3)<>ROW(1+1,2,3);ROW(1,2,3)<>ROW(1+1,2,3)1SELECT ROW(NULL,2,3)=ROW(NULL,2,3);ROW(NULL,2,3)=ROW(NULL,2,3)NULLSELECT ROW(NULL,2,3)<=>ROW(NULL,2,3);ROW(NULL,2,3)<=>ROW(NULL,2,3)1SELECT ROW(1,2,ROW(3,4,5))=ROW(1,2,ROW(3,4,5));ROW(1,2,ROW(3,4,5))=ROW(1,2,ROW(3,4,5))1SELECT ROW('test',2,3.33)=ROW('test',2,3.33);ROW('test',2,3.33)=ROW('test',2,3.33)1SELECT ROW('test',2,3.33)=ROW('test',2,3.33,4);ERROR 21000: Operand should contain 3 column(s)SELECT ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,33));ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,33))1SELECT ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,3));ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,3))0SELECT ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,NULL));ROW('test',2,ROW(3,33))=ROW('test',2,ROW(3,NULL))NULLSELECT ROW('test',2,ROW(3,33))=ROW('test',2,4);ERROR 21000: Operand should contain 2 column(s)create table t1 ( a int, b int, c int);insert into t1 values (1,2,3), (2,3,1), (3,2,1), (1,2,NULL);select * from t1 where ROW(1,2,3)=ROW(a,b,c);a	b	c1	2	3select * from t1 where ROW(0,2,3)=ROW(a,b,c);a	b	cselect * from t1 where ROW(1,2,3)<ROW(a,b,c);a	b	c2	3	13	2	1select ROW(a,2,3) IN(row(1,b,c), row(2,3,1)) from t1;ROW(a,2,3) IN(row(1,b,c), row(2,3,1))100NULLselect ROW(c,2,3) IN(row(1,b,a), row(2,3,1)) from t1;ROW(c,2,3) IN(row(1,b,a), row(2,3,1))001NULLselect ROW(a,b,c) IN(row(1,2,3), row(3,2,1)) from t1;ROW(a,b,c) IN(row(1,2,3), row(3,2,1))101NULLselect ROW(1,2,3) IN(row(a,b,c), row(1,2,3)) from t1;ROW(1,2,3) IN(row(a,b,c), row(1,2,3))1111drop table t1;select ROW(1,1);ERROR 21000: Operand should contain 1 column(s)create table t1 (i int);select 1 from t1 where ROW(1,1);ERROR 21000: Operand should contain 1 column(s)select count(*) from t1 order by ROW(1,1);ERROR 21000: Operand should contain 1 column(s)select count(*) from t1 having (1,1) order by i;ERROR 21000: Operand should contain 1 column(s)drop table t1;create table t1 (a int, b int);insert into t1 values (1, 4);insert into t1 values (10, 40);insert into t1 values (1, 4);insert into t1 values (10, 43);insert into t1 values (1, 4);insert into t1 values (10, 41);insert into t1 values (1, 4);insert into t1 values (10, 43);insert into t1 values (1, 4);select a, MAX(b), (1, MAX(b)) = (1, 4) from t1 group by a;a	MAX(b)	(1, MAX(b)) = (1, 4)1	4	110	43	0drop table t1;SELECT ROW(2,10) <=> ROW(3,4);ROW(2,10) <=> ROW(3,4)0SELECT ROW(NULL,10) <=> ROW(3,NULL);ROW(NULL,10) <=> ROW(3,NULL)0SELECT ROW(1,1,1) = ROW(1,1,1) as `1`, ROW(1,1,1) = ROW(1,2,1) as `0`, ROW(1,NULL,1) = ROW(2,2,1) as `0`, ROW(1,NULL,1) = ROW(1,2,2) as `0`, ROW(1,NULL,1) = ROW(1,2,1) as `null` ;1	0	0	0	null1	0	0	0	NULLselect row(NULL,1)=(2,0);row(NULL,1)=(2,0)0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -