update table_name set field_name = trim(field_name) ;





update 실행 중, 아래의 메세지가 뜨면




Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.






where 조건에 pk 를 지정 하거나, 아래 쿼리 실행


set sql_safe_updates=0;




'뒤죽박죽 머리속' 카테고리의 다른 글

selectbox binding  (0) 2016.11.10
selectbox 선택 된 상태로 loading  (0) 2016.11.10
insert-update 구분해서 한줄로  (0) 2016.11.03
javascript 새 창 띄우기  (0) 2016.11.01
List 출력 활용 (가로로 출력)  (0) 2016.11.01

+ Recent posts