{"action":"created","issue":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/424","labels_url":"https://api.github.com/repos/jinzhu/gorm/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/424/comments","events_url":"https://api.github.com/repos/jinzhu/gorm/issues/424/events","html_url":"https://github.com/jinzhu/gorm/issues/424","id":62085537,"number":424,"title":"inner join in update query","user":{"login":"Kaustubh-Deshmukh","id":1191504,"avatar_url":"https://avatars.githubusercontent.com/u/1191504?v=3","gravatar_id":"","url":"https://api.github.com/users/Kaustubh-Deshmukh","html_url":"https://github.com/Kaustubh-Deshmukh","followers_url":"https://api.github.com/users/Kaustubh-Deshmukh/followers","following_url":"https://api.github.com/users/Kaustubh-Deshmukh/following{/other_user}","gists_url":"https://api.github.com/users/Kaustubh-Deshmukh/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaustubh-Deshmukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaustubh-Deshmukh/subscriptions","organizations_url":"https://api.github.com/users/Kaustubh-Deshmukh/orgs","repos_url":"https://api.github.com/users/Kaustubh-Deshmukh/repos","events_url":"https://api.github.com/users/Kaustubh-Deshmukh/events{/privacy}","received_events_url":"https://api.github.com/users/Kaustubh-Deshmukh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-16T13:44:20Z","updated_at":"2015-04-03T09:04:45Z","closed_at":"2015-04-03T09:04:45Z","body":"How Am I supposed to fire an inner join query in update clause? I tried several ways, but failed.\r\n\r\n```\r\nupdate <table1> set <value = 0>\r\nfrom <table2> where table1.id = table2.id\r\nand table2.column <= 2000\r\n```"},"comment":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/comments/89229524","html_url":"https://github.com/jinzhu/gorm/issues/424#issuecomment-89229524","issue_url":"https://api.github.com/repos/jinzhu/gorm/issues/424","id":89229524,"user":{"login":"jinzhu","id":6843,"avatar_url":"https://avatars.githubusercontent.com/u/6843?v=3","gravatar_id":"","url":"https://api.github.com/users/jinzhu","html_url":"https://github.com/jinzhu","followers_url":"https://api.github.com/users/jinzhu/followers","following_url":"https://api.github.com/users/jinzhu/following{/other_user}","gists_url":"https://api.github.com/users/jinzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/jinzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinzhu/subscriptions","organizations_url":"https://api.github.com/users/jinzhu/orgs","repos_url":"https://api.github.com/users/jinzhu/repos","events_url":"https://api.github.com/users/jinzhu/events{/privacy}","received_events_url":"https://api.github.com/users/jinzhu/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T09:04:44Z","updated_at":"2015-04-03T09:04:44Z","body":"```\r\ndb.Where(\"id in (select * from t2 where t2.column <= 2000)\").Update(\"value\", 0)\r\n```"}}