Posts of specific type containing the given word (tag-wikis, tag-excerpts)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

SELECT
  p.Id As [Post Link],
  'site://posts/' + CAST(p.Id AS varchar)+'/revisions' AS [Revisions],
  p.OwnerUserId AS [User Link],
  p.CreationDate, p.LastActivityDate,  p.Score, p.ViewCount, p.Body
FROM Posts p  
WHERE (p.Body Like '%##word?http:##%') AND (p.PostTypeId IN (##types?4,5##))
ORDER BY p.Id DESC

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results