Retrieve Comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

See your old comments and how many upvotes they have

Stack Overflow

Q&A for professional and enthusiast programmers

-- Retrieve Comments
-- See your old comments and how many upvotes they have

DECLARE @UserId int = ##UserId##

SELECT 
    Score AS [Up Votes],
    PostID AS [POST ID]
FROM 
    Comments
WHERE 
    UserId = @UserId
ORDER BY 
    Score DESC

Enter Parameters

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