mysql - convert table to CSV ENGINE with null VALUES -
mysql> alter table orders engine=csv;
error 1178 (42000): storage engine table doesn't support nullable columns
in table have nulls values. how convert csv table ?
when converting innodb engine return null values. how it?
after generating table, before altering use engine csv must use 'alter table' change relevant columns 'not null'
i.e.
create temporary table tmp1 ( select created_ts accounts ); \ update tmp1 set created_ts='' created_ts null; \ alter table tmp1 change column created_ts created_ts timestamp not null ; \ alter table tmp1 engine=csv;
Comments
Post a Comment