mysql - Invalid update SQL in DataGrip -


i wrote mysql update sql on datagrip update wrong data:

update common_express_track set step = 135 express_id in (33, 235, 237) , business_source = 0 , step = 0 , content = 'out delivery' order content; 

i executed it, console showed "61 rows affected in 7s 530ms" , executed query statement make sure data has been modified.

select * common_express_track express_id in (33, 235, 237) , business_source = 0 , step = 0 , content = 'out delivery' order content; 

then console shows "0 rows retrieved in 3s 751ms".

but when restart datagrip , execute query statement again, got 61 rows, means update statement didn't work, don't know why, because cache or something?

how solve problem?

when execute queries should use autocommit

then clicking on table in database view see refresh

try use autocommit query , refresh when browse data. should help.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -