我只想从Stack的/questions那里得到一些封闭的问题。
我使用了一些过滤器,并为每个问题提出了一些类似于something which gives的JSON:
{
"tags": [
"c++",
"opencl",
"intel"
],
"close_vote_count": 0,
"title": "Weird OpenCL calls side effect on C++ for loop performance",
"body": "<p>I'm working on a C++ project using OpenCL. I'm using the CPU as an OpenCL device with the <a href=\"http://registrationcenter.intel.com/irc_nas/5193/intel_code_builder_for_opencl_2015_ubuntu_5.0.0.43_x64.tgz\" rel=\"nofollow\">intel OpenCL runtime</a></p>[...]"
},现在,我只想问那些已经结束的问题.
我该怎么做?
(另一件事:我怎么能把封闭的问题排除在结果之外?)
发布于 2015-07-06 22:52:45
通过使用以下查询,您可以轻松地做到这一点:
SELECT count(*)
FROM Posts
WHERE ClosedDate IS NOT NULL然而,这并没有告诉您关闭的原因,要获得这个结果,您应该查看PostHistoryTable,它包含与一个帖子相关的所有更改的详细信息。
https://stackoverflow.com/questions/29967852
复制相似问题