alter table h_member modify h_addr varchar(200); 필드 추가
h_addr 추가했는데, NULL 로 잡혀있다.
mysql> update h_member set h_addr='';
mysql> alter table h_member modify h_addr text not null;
mysql> alter table h_member modify h_addr text null;
상기 3과정을 통해 아래와 같이 바꾸었다.
728x90
'Database > MySQL' 카테고리의 다른 글
[Mysql] 데이터 backup (0) | 2022.07.04 |
---|---|
[Mysql] 테이블 생성하기 / select count(*) (0) | 2022.07.04 |
[Mysql] 데이터 수정하기 update (0) | 2022.07.04 |
MySQL (0) | 2022.06.30 |
MySql Shell 명령어 (0) | 2022.06.30 |
댓글