{"action":"created","issue":{"url":"https://api.github.com/repos/top-think/framework/issues/125","repository_url":"https://api.github.com/repos/top-think/framework","labels_url":"https://api.github.com/repos/top-think/framework/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/top-think/framework/issues/125/comments","events_url":"https://api.github.com/repos/top-think/framework/issues/125/events","html_url":"https://github.com/top-think/framework/issues/125","id":160096586,"number":125,"title":"Db::table 没法使用子查询","user":{"login":"cbwfree","id":7790202,"avatar_url":"https://avatars.githubusercontent.com/u/7790202?v=3","gravatar_id":"","url":"https://api.github.com/users/cbwfree","html_url":"https://github.com/cbwfree","followers_url":"https://api.github.com/users/cbwfree/followers","following_url":"https://api.github.com/users/cbwfree/following{/other_user}","gists_url":"https://api.github.com/users/cbwfree/gists{/gist_id}","starred_url":"https://api.github.com/users/cbwfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbwfree/subscriptions","organizations_url":"https://api.github.com/users/cbwfree/orgs","repos_url":"https://api.github.com/users/cbwfree/repos","events_url":"https://api.github.com/users/cbwfree/events{/privacy}","received_events_url":"https://api.github.com/users/cbwfree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-14T04:47:49Z","updated_at":"2016-11-12T03:03:15Z","closed_at":null,"body":"```\n$subQuery = Db::table('think_user')\n    ->field('id,name')\n    ->where('id','>',10)\n    ->buildSql();\nDb::table($subQuery.' a')\n    ->where('a.name','like','thinkphp')\n    ->order('id','desc')\n    ->select();\n```\n\n按手册上的方式写, 会出现异常 `SQLSTATE[42S02]: Base table or view not found: 1146 Table`\n"},"comment":{"url":"https://api.github.com/repos/top-think/framework/issues/comments/260097746","html_url":"https://github.com/top-think/framework/issues/125#issuecomment-260097746","issue_url":"https://api.github.com/repos/top-think/framework/issues/125","id":260097746,"user":{"login":"Xuchengen","id":4288666,"avatar_url":"https://avatars.githubusercontent.com/u/4288666?v=3","gravatar_id":"","url":"https://api.github.com/users/Xuchengen","html_url":"https://github.com/Xuchengen","followers_url":"https://api.github.com/users/Xuchengen/followers","following_url":"https://api.github.com/users/Xuchengen/following{/other_user}","gists_url":"https://api.github.com/users/Xuchengen/gists{/gist_id}","starred_url":"https://api.github.com/users/Xuchengen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xuchengen/subscriptions","organizations_url":"https://api.github.com/users/Xuchengen/orgs","repos_url":"https://api.github.com/users/Xuchengen/repos","events_url":"https://api.github.com/users/Xuchengen/events{/privacy}","received_events_url":"https://api.github.com/users/Xuchengen/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T03:03:15Z","updated_at":"2016-11-12T03:03:15Z","body":"这个问题关注一下吧，我也遇到这样的问题。\r\n@liu21st 我用的最新版本5.0.2，子查询采用的是数组方式。"}}
{"actor":{"display_login":"Xuchengen"}}