1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

DATE,TIME and DATETIME SQL typecasts

This commit is contained in:
unknown
2001-12-29 20:56:50 +02:00
parent 049ded305c
commit 19f4deb16b
4 changed files with 73 additions and 1 deletions

View File

@ -86,4 +86,11 @@ c date 0000-00-00
d bigint(17) 0
e double(18,1) 0.0
f bigint(17) 0
drop table t2;
create table t2 select DATE "2001-12-29" as d, TIME "20:45:11" as t, DATETIME "2001-12-29 20:45:11" as dt;
describe t2;
Field Type Null Key Default Extra
d date 0000-00-00
t time 00:00:00
dt datetime 0000-00-00 00:00:00
drop table t1,t2;