반응형

alter table cdp.tb_rc_service_base modify biz_area varchar(500) NOT NULL;

실행시 Error Code: 1138. Invalid use of NULL value 발생.

not null column에 이미 null이 들어가있어 문제됨, null이 되지 않도록 update하거나

alter table cdp.tb_rc_service_base modify biz_area varchar(500) NOT NULL default ''; 수행하면됨 

반응형

'db' 카테고리의 다른 글

mysql remote 접속허용  (0) 2022.04.14
mysql numeric type  (0) 2020.11.05
mysql workbench timeout 설정 (Lost connection to MySQL server during query)  (0) 2020.05.25
mysql lock  (0) 2020.05.25
mysql data migration  (0) 2020.05.21

+ Recent posts