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

📄 type_time.test

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 TEST
字号:
## testing of the TIME column type#--disable_warningsdrop table if exists t1;--enable_warningscreate table t1 (t time);insert into t1 values("10:22:33"),("12:34:56.78"),(10),(1234),(123456.78),(1234559.99),("1"),("1:23"),("1:23:45"), ("10.22"), ("-10  1:22:33.45"),("20 10:22:33"),("1999-02-03 20:33:34");insert t1 values (30),(1230),("1230"),("12:30"),("12:30:35"),("1 12:30:31.32");select * from t1;# Test wrong valuesinsert into t1 values("10.22.22"),(1234567),(123456789),(123456789.10),("10 22:22"),("12.45a");select * from t1;drop table t1;create table t1 (t time);insert into t1 values ('09:00:00'),('13:00:00'),('19:38:34'), ('13:00:00'),('09:00:00'),('09:00:00'),('13:00:00'),('13:00:00'),('13:00:00'),('09:00:00');select t, time_to_sec(t),sec_to_time(time_to_sec(t)) from t1;select sec_to_time(time_to_sec(t)) from t1;drop table t1;## BUG #12440: Incorrect processing of time values containing# long fraction part and/or large exponent part.## These must return normal result:# ########################################################### To be uncommented after fix BUG #15805# ########################################################### SELECT CAST(235959.123456 AS TIME);# SELECT CAST(0.235959123456e+6 AS TIME);# SELECT CAST(235959123456e-6 AS TIME);# These must cut fraction part and produce warning:# SELECT CAST(235959.1234567 AS TIME);# SELECT CAST(0.2359591234567e6 AS TIME);# This must return NULL and produce warning:# SELECT CAST(0.2359591234567e+30 AS TIME);# ########################################################### End of 4.1 tests

⌨️ 快捷键说明

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