Search for post by body and User ID

1

Please login or register to vote for this query.

(click on this box to dismiss)

Bitcoin Meta

Q&A about the site for Bitcoin crypto-currency enthusiasts

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 main site
loading Hold tight while we fetch your results