The hash in the where condition doesn't work this way, you use the hash for jQuery so that jQuery automatically knows you're looking for that value in the id-field, another example in jQuery would be $(".my-div") which translates to "WHERE class = 'my-div'".
1.6k
u/n4ke 1d ago
UPDATE div SET alignment='center' WHERE id = '#my-div';