μΉ΄ν…Œκ³ λ¦¬ μ—†μŒ

[MySQL] μ‚­μ œ μ•ˆλ¨ Error Code: 1175. You are using safe update mode...

벼리01 2024. 2. 6. 23:36

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.

 

safe modeκ°€ 켜져 μžˆμ–΄μ„œ update ꡬ문이 ν†΅ν•˜μ§€ μ•Šμ„ λ•Œ.

 

set SQL_SAFE_UPDATES = 0;
-- safe mode disable

 

 

ꡬ문을 μž‘μ„±ν•˜κ³  λ‚œ λ’€μ—” μ•ˆμ „μ„ μœ„ν•΄ λ°˜λ“œμ‹œ λ‹€μ‹œ μΌœμ£Όλ„λ‘ ν•˜μž.

 

set SQL_SAFE_UPDATES = 1;
-- safe mode enable