type_year.result
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 49 行
RESULT
49 行
drop table if exists t1;create table t1 (y year,y2 year(2));insert into t1 values (0,0),(1999,1999),(2000,2000),(2001,2001),(70,70),(69,69);select * from t1;y y20000 001999 992000 002001 011970 702069 69select * from t1 order by y;y y20000 001970 701999 992000 002001 012069 69select * from t1 order by y2;y y21970 701999 990000 002000 002001 012069 69drop table t1;create table t1 (y year);insert into t1 values (now());Warnings:Warning 1265 Data truncated for column 'y' at row 1select if(y = now(), 1, 0) from t1;if(y = now(), 1, 0)1drop table t1;create table t1(a year);insert into t1 values (2000.5), ('2000.5'), ('2001a'), ('2.001E3');Warnings:Warning 1265 Data truncated for column 'a' at row 3select * from t1;a2001200120012001drop table t1;End of 5.0 tests
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?