You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @gai410388544 looks like your updating existing table. The error in your query is due to the incorrect syntax for an INSERT statement. In SQL, you cannot have a WHERE clause with an INSERT statement. If you intend to insert a new record, the correct syntax. you can try the below
String query = "UPDATE users SET status = :status WHERE name = :name";
int result = session.createQuery(query)
.setParameter("status", "updated")
.setParameter("name", "data")
.executeUpdate();
line 44 wrong mark as 46
The text was updated successfully, but these errors were encountered: