type_year.result
来自「这是linux下运行的mysql软件包,可用于linux 下安装 php + m」· RESULT 代码 · 共 37 行
RESULT
37 行
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;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?