round.result
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 273 行
RESULT
273 行
DROP TABLE IF EXISTS t1;CREATE TABLE t1 (sint8 tinyint not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('127.4');INSERT INTO t1 VALUES ('127.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint8' at row 1INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');INSERT INTO t1 VALUES ('-127.4');INSERT INTO t1 VALUES ('-127.5');INSERT INTO t1 VALUES ('-128.4');INSERT INTO t1 VALUES ('-128.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint8' at row 1SELECT * FROM t1;sint8011271270-1-127-128-128-128DROP TABLE t1;CREATE TABLE t1 (uint8 tinyint unsigned not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('127.4');INSERT INTO t1 VALUES ('127.5');INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint8' at row 1INSERT INTO t1 VALUES ('255.4');INSERT INTO t1 VALUES ('255.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint8' at row 1SELECT * FROM t1;uint80112712800255255DROP TABLE t1;CREATE TABLE t1 (sint16 smallint not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('32767.4');INSERT INTO t1 VALUES ('32767.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint16' at row 1INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');INSERT INTO t1 VALUES ('-32767.4');INSERT INTO t1 VALUES ('-32767.5');INSERT INTO t1 VALUES ('-32768.4');INSERT INTO t1 VALUES ('-32768.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint16' at row 1SELECT * FROM t1;sint160132767327670-1-32767-32768-32768-32768DROP TABLE t1;CREATE TABLE t1 (uint16 smallint unsigned not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('32767.4');INSERT INTO t1 VALUES ('32767.5');INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint16' at row 1INSERT INTO t1 VALUES ('65535.4');INSERT INTO t1 VALUES ('65535.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint16' at row 1SELECT * FROM t1;uint16013276732768006553565535DROP TABLE t1;CREATE TABLE t1 (sint24 mediumint not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('8388607.4');INSERT INTO t1 VALUES ('8388607.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint24' at row 1INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');INSERT INTO t1 VALUES ('-8388607.4');INSERT INTO t1 VALUES ('-8388607.5');INSERT INTO t1 VALUES ('-8388608.4');INSERT INTO t1 VALUES ('-8388608.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint24' at row 1SELECT * FROM t1;sint2401838860783886070-1-8388607-8388608-8388608-8388608DROP TABLE t1;CREATE TABLE t1 (uint24 mediumint unsigned not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('8388607.4');INSERT INTO t1 VALUES ('8388607.5');INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint24' at row 1INSERT INTO t1 VALUES ('16777215.4');INSERT INTO t1 VALUES ('16777215.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint24' at row 1SELECT * FROM t1;uint240183886078388608001677721516777215DROP TABLE t1;CREATE TABLE t1 (sint64 bigint not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('9223372036854775807.4');INSERT INTO t1 VALUES ('9223372036854775807.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint64' at row 1INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');INSERT INTO t1 VALUES ('-9223372036854775807.4');INSERT INTO t1 VALUES ('-9223372036854775807.5');INSERT INTO t1 VALUES ('-9223372036854775808.4');INSERT INTO t1 VALUES ('-9223372036854775808.5');Warnings:Warning 1264 Out of range value adjusted for column 'sint64' at row 1SELECT * FROM t1;sint6401922337203685477580792233720368547758070-1-9223372036854775807-9223372036854775808-9223372036854775808-9223372036854775808DROP TABLE t1;CREATE TABLE t1 (uint64 bigint unsigned not null);INSERT INTO t1 VALUES ('0.1');INSERT INTO t1 VALUES ('0.5');INSERT INTO t1 VALUES ('9223372036854775807.4');INSERT INTO t1 VALUES ('9223372036854775807.5');INSERT INTO t1 VALUES ('-0.1');INSERT INTO t1 VALUES ('-0.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint64' at row 1INSERT INTO t1 VALUES ('18446744073709551615.4');INSERT INTO t1 VALUES ('18446744073709551615.5');Warnings:Warning 1264 Out of range value adjusted for column 'uint64' at row 1INSERT INTO t1 VALUES ('1844674407370955161.0');INSERT INTO t1 VALUES ('1844674407370955161.1');INSERT INTO t1 VALUES ('1844674407370955161.2');INSERT INTO t1 VALUES ('1844674407370955161.3');INSERT INTO t1 VALUES ('1844674407370955161.4');INSERT INTO t1 VALUES ('1844674407370955161.5');INSERT INTO t1 VALUES ('1844674407370955161.0e1');INSERT INTO t1 VALUES ('1844674407370955161.1e1');INSERT INTO t1 VALUES ('1844674407370955161.2e1');INSERT INTO t1 VALUES ('1844674407370955161.3e1');INSERT INTO t1 VALUES ('1844674407370955161.4e1');INSERT INTO t1 VALUES ('1844674407370955161.5e1');INSERT INTO t1 VALUES ('18446744073709551610e-1');INSERT INTO t1 VALUES ('18446744073709551611e-1');INSERT INTO t1 VALUES ('18446744073709551612e-1');INSERT INTO t1 VALUES ('18446744073709551613e-1');INSERT INTO t1 VALUES ('18446744073709551614e-1');INSERT INTO t1 VALUES ('18446744073709551615e-1');SELECT * FROM t1;uint640192233720368547758079223372036854775808001844674407370955161518446744073709551615184467440737095516118446744073709551611844674407370955161184467440737095516118446744073709551611844674407370955162184467440737095516101844674407370955161118446744073709551612184467440737095516131844674407370955161418446744073709551615184467440737095516118446744073709551611844674407370955161184467440737095516118446744073709551611844674407370955162DROP TABLE t1;CREATE TABLE t1 (str varchar(128), sint64 bigint not null default 0);INSERT INTO t1 (str) VALUES ('1.5');INSERT INTO t1 (str) VALUES ('1.00005e4');INSERT INTO t1 (str) VALUES ('1.0005e3');INSERT INTO t1 (str) VALUES ('1.005e2');INSERT INTO t1 (str) VALUES ('1.05e1');INSERT INTO t1 (str) VALUES ('1.5e0');INSERT INTO t1 (str) VALUES ('100005e-1');INSERT INTO t1 (str) VALUES ('100050e-2');INSERT INTO t1 (str) VALUES ('100500e-3');INSERT INTO t1 (str) VALUES ('105000e-4');INSERT INTO t1 (str) VALUES ('150000e-5');UPDATE t1 SET sint64=str;SELECT * FROM t1;str sint641.5 21.00005e4 100011.0005e3 10011.005e2 1011.05e1 111.5e0 2100005e-1 10001100050e-2 1001100500e-3 101105000e-4 11150000e-5 2DROP TABLE t1;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?