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

📄 bigint.result

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 RESULT
📖 第 1 页 / 共 2 页
字号:
drop table if exists t1, t2;select 0,256,00000000000000065536,2147483647,-2147483648,2147483648,+4294967296;0	256	00000000000000065536	2147483647	-2147483648	2147483648	42949672960	256	65536	2147483647	-2147483648	2147483648	4294967296select 9223372036854775807,-009223372036854775808;9223372036854775807	-0092233720368547758089223372036854775807	-9223372036854775808select +9999999999999999999,-9999999999999999999;9999999999999999999	-99999999999999999999999999999999999999	-9999999999999999999select cast(9223372036854775808 as unsigned)+1;cast(9223372036854775808 as unsigned)+19223372036854775809select 9223372036854775808+1;9223372036854775808+19223372036854775809select -(0-3),round(-(0-3)), round(9999999999999999999);-(0-3)	round(-(0-3))	round(9999999999999999999)3	3	9999999999999999999select 1,11,101,1001,10001,100001,1000001,10000001,100000001,1000000001,10000000001,100000000001,1000000000001,10000000000001,100000000000001,1000000000000001,10000000000000001,100000000000000001,1000000000000000001,10000000000000000001;1	11	101	1001	10001	100001	1000001	10000001	100000001	1000000001	10000000001	100000000001	1000000000001	10000000000001	100000000000001	1000000000000001	10000000000000001	100000000000000001	1000000000000000001	100000000000000000011	11	101	1001	10001	100001	1000001	10000001	100000001	1000000001	10000000001	100000000001	1000000000001	10000000000001	100000000000001	1000000000000001	10000000000000001	100000000000000001	1000000000000000001	10000000000000000001select -1,-11,-101,-1001,-10001,-100001,-1000001,-10000001,-100000001,-1000000001,-10000000001,-100000000001,-1000000000001,-10000000000001,-100000000000001,-1000000000000001,-10000000000000001,-100000000000000001,-1000000000000000001,-10000000000000000001;-1	-11	-101	-1001	-10001	-100001	-1000001	-10000001	-100000001	-1000000001	-10000000001	-100000000001	-1000000000001	-10000000000001	-100000000000001	-1000000000000001	-10000000000000001	-100000000000000001	-1000000000000000001	-10000000000000000001-1	-11	-101	-1001	-10001	-100001	-1000001	-10000001	-100000001	-1000000001	-10000000001	-100000000001	-1000000000001	-10000000000001	-100000000000001	-1000000000000001	-10000000000000001	-100000000000000001	-1000000000000000001	-10000000000000000001select conv(1,10,16),conv((1<<2)-1,10,16),conv((1<<10)-2,10,16),conv((1<<16)-3,10,16),conv((1<<25)-4,10,16),conv((1<<31)-5,10,16),conv((1<<36)-6,10,16),conv((1<<47)-7,10,16),conv((1<<48)-8,10,16),conv((1<<55)-9,10,16),conv((1<<56)-10,10,16),conv((1<<63)-11,10,16);conv(1,10,16)	conv((1<<2)-1,10,16)	conv((1<<10)-2,10,16)	conv((1<<16)-3,10,16)	conv((1<<25)-4,10,16)	conv((1<<31)-5,10,16)	conv((1<<36)-6,10,16)	conv((1<<47)-7,10,16)	conv((1<<48)-8,10,16)	conv((1<<55)-9,10,16)	conv((1<<56)-10,10,16)	conv((1<<63)-11,10,16)1	3	3FE	FFFD	1FFFFFC	7FFFFFFB	FFFFFFFFA	7FFFFFFFFFF9	FFFFFFFFFFF8	7FFFFFFFFFFFF7	FFFFFFFFFFFFF6	7FFFFFFFFFFFFFF5create table t1 (a bigint unsigned not null, primary key(a));insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), (18446744073709551613), (18446744073709551612);select * from t1;a18446744073709551612184467440737095516131844674407370955161418446744073709551615select * from t1 where a=18446744073709551615;a18446744073709551615delete from t1 where a=18446744073709551615;select * from t1;a184467440737095516121844674407370955161318446744073709551614drop table t1;create table t1 ( a int not null default 1, big bigint );insert into t1 (big) values (-1),(12345678901234567),(9223372036854775807),(18446744073709551615);Warnings:Warning	1264	Out of range value adjusted for column 'big' at row 4select * from t1;a	big1	-11	123456789012345671	92233720368547758071	9223372036854775807select min(big),max(big),max(big)-1 from t1;min(big)	max(big)	max(big)-1-1	9223372036854775807	9223372036854775806select min(big),max(big),max(big)-1 from t1 group by a;min(big)	max(big)	max(big)-1-1	9223372036854775807	9223372036854775806alter table t1 modify big bigint unsigned not null;Warnings:Warning	1264	Out of range value adjusted for column 'big' at row 1select min(big),max(big),max(big)-1 from t1;min(big)	max(big)	max(big)-10	9223372036854775807	9223372036854775806select min(big),max(big),max(big)-1 from t1 group by a;min(big)	max(big)	max(big)-10	9223372036854775807	9223372036854775806insert into t1 (big) values (18446744073709551615);select * from t1;a	big1	01	123456789012345671	92233720368547758071	92233720368547758071	18446744073709551615select min(big),max(big),max(big)-1 from t1;min(big)	max(big)	max(big)-10	18446744073709551615	18446744073709551614select min(big),max(big),max(big)-1 from t1 group by a;min(big)	max(big)	max(big)-10	18446744073709551615	18446744073709551614alter table t1 add key (big);select min(big),max(big),max(big)-1 from t1;min(big)	max(big)	max(big)-10	18446744073709551615	18446744073709551614select min(big),max(big),max(big)-1 from t1 group by a;min(big)	max(big)	max(big)-10	18446744073709551615	18446744073709551614alter table t1 modify big bigint not null;Warnings:Warning	1264	Out of range value adjusted for column 'big' at row 5select * from t1;a	big1	01	123456789012345671	92233720368547758071	92233720368547758071	9223372036854775807select min(big),max(big),max(big)-1 from t1;min(big)	max(big)	max(big)-10	9223372036854775807	9223372036854775806select min(big),max(big),max(big)-1 from t1 group by a;min(big)	max(big)	max(big)-10	9223372036854775807	9223372036854775806drop table t1;create table t1 (id bigint auto_increment primary key, a int) auto_increment=9999999999;insert into t1 values (null,1);select * from t1;id	a9999999999	1select * from t1 limit 9999999999;id	a9999999999	1drop table t1;CREATE TABLE t1 ( quantity decimal(60,0));insert into t1 values (10000000000000000000);insert into t1 values (10000000000000000000.0);insert into t1 values ('10000000000000000000');select * from t1;quantity100000000000000000001000000000000000000010000000000000000000drop table t1;SELECT '0x8000000000000001'+0;'0x8000000000000001'+00Warnings:Warning	1292	Truncated incorrect DOUBLE value: '0x8000000000000001'create table t1 (value64  bigint unsigned  not null,value32  integer          not null,primary key(value64, value32));create table t2 (value64  bigint unsigned  not null,value32  integer          not null,primary key(value64, value32));insert into t1 values(17156792991891826145, 1);insert into t1 values( 9223372036854775807, 2);insert into t2 values(17156792991891826145, 3);insert into t2 values( 9223372036854775807, 4);select * from t1;value64	value329223372036854775807	217156792991891826145	1select * from t2;value64	value329223372036854775807	417156792991891826145	3select * from t1, t2 where t1.value64=17156792991891826145 andt2.value64=17156792991891826145;value64	value32	value64	value3217156792991891826145	1	17156792991891826145	3select * from t1, t2 where t1.value64=17156792991891826145 andt2.value64=t1.value64;value64	value32	value64	value3217156792991891826145	1	17156792991891826145	3select * from t1, t2 where t1.value64= 9223372036854775807 andt2.value64=9223372036854775807;value64	value32	value64	value329223372036854775807	2	9223372036854775807	4select * from t1, t2 where t1.value64= 9223372036854775807 andt2.value64=t1.value64;value64	value32	value64	value329223372036854775807	2	9223372036854775807	4drop table t1, t2;

⌨️ 快捷键说明

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