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
update matching_times set duration=TIME_TO_SEC(TIMEDIFF('2021-03-11 16:23:21',created_at)) where user_id in (145, 146,...)
These are not work's
DB().Execute("update matching_times set duration=TIME_TO_SEC(TIMEDIFF(?,created_at)) where user_id in (?) ", currentTimeString, []int{145, 146})
How I can add elements from slice in "in"?
How I can Execute this SQL-query:
update matching_times set duration=TIME_TO_SEC(TIMEDIFF('2021-03-11 16:23:21',created_at)) where user_id in (145, 146,...)
These are not work's
DB().Execute("update matching_times set duration=TIME_TO_SEC(TIMEDIFF(?,created_at)) where user_id in (?) ", currentTimeString, []int{145, 146})
How I can add elements from slice in "in"?
or
DB().Table("matching_times").WhereIn("user_id", userList).Data(gorose.Data{"duration":"TIME_TO_SEC(TIMEDIFF("+currentTimeString+",created_at))"}).Update()
Do you have opportunity to add Raw SQL in query builder?
The text was updated successfully, but these errors were encountered: