i'm practicing on MySQL and i have a question about the "where" clause , why in MySQL the condition that comes after "where" should be in the primary key ? if i put any condition other than the primary key it will be an error !!
for example i have a table called "students" with 4 columns , first one is "stuid" and its the primary key and there are "stuname" , "classroom" , "stuage" and these are the rest of the columns why i can't say for example
update students
set stuname = 'sarah'
where classroom = 46;
and this is the error :
" 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."
i tried to do what the messsage says but i didnt understand the part about "reconnect"
hence : i'm using MySQL on mac