---
title: "temp"
author: "Freeze"
date: "2012-01-18T11:40:36Z"
tags: []
categories: ["非技术"]
slug: "temp"
draft: false
lastmod: "2012-01-18T11:40:36Z"
id: 1356074
url: "https://freeze.iteye.com/blog/1356074"
---

Select top 5 a.ID,a.Title,a.Link,a.Content,a.AddTime, b.Content AS bContent FROM Content a LEFT JOIN FieldContent b ON a.ID = b.ContentID Where a.ItemIDS = '109' And b.Content &lt;&gt; ''  And a.FSID = -2  And ((a.PubType = 0) OR (a.PubType = 1 And a.PubDate &lt; getdate())) And ((a.DueType = 0) OR (a.DueType = 1 And a.DueDate &gt; getdate())) And a.IsDelete = 0 And a.IsDraft = 0 Order By a.AddTime DESC