Search for post by body and User ID

1

Please login or register to vote for this query.

(click on this box to dismiss)

Writing

Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

DECLARE @userId INT = ##UserId##;
DECLARE @bodyValue NVARCHAR(MAX) = '##BodyValue##';

SELECT
  T1.*
FROM
  Posts AS T1
WHERE
  T1.OwnerUserId = @userId AND
  T1.Body LIKE CONCAT('%', @bodyValue, '%');

Enter Parameters

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