118
118
create table t2 select x from t1 where 1=2;
120
120
Field Type Null Default Default_is_NULL On_Update
123
123
Field Type Null Default Default_is_NULL On_Update
126
126
create table t2 select now() as a , curdate() as c , 1+1 as d , 1.0 + 1 as e , 33333333333333333 + 3 as f;
128
128
Field Type Null Default Default_is_NULL On_Update
135
135
create table t2 select CAST("2001-12-29" AS DATE) as d, CAST("2001-12-29 20:45:11" AS DATETIME) as dt;
137
137
Field Type Null Default Default_is_NULL On_Update
142
142
create table t2 (a int) select * from t1;
144
144
Field Type Null Default Default_is_NULL On_Update
147
147
Field Type Null Default Default_is_NULL On_Update
150
150
create table t2 (a int, a float) select * from t1;
151
151
ERROR 42S21: Duplicate column name 'a'