Count querySsri14yAsked Jan 28, 2013, 12:17 AM EST1 answerShareLinkedInXCopy linkSavehow to store the count query result in a variable?1 AnswerKnow the answer? Post it. Somebody with the same question will find it here.AnkurRank #1,348 · 1.2K points14y agoPosted Jan 28, 2013, 12:26 AM EST0Hi Sri,assuming your query is about SQL query(if not please let me know):declare @Count int = 0set @Count = (Select COUNT(ColumnName) from TableName)print @CountHope that helps.Thanks..0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
Count querySsri14yAsked Jan 28, 2013, 12:17 AM EST1 answerShareLinkedInXCopy linkSavehow to store the count query result in a variable?
AnkurRank #1,348 · 1.2K points14y agoPosted Jan 28, 2013, 12:26 AM EST0Hi Sri,assuming your query is about SQL query(if not please let me know):declare @Count int = 0set @Count = (Select COUNT(ColumnName) from TableName)print @CountHope that helps.Thanks..0
AnkurRank #1,348 · 1.2K pointsPosted Jan 28, 2013, 12:26 AM EST
assuming your query is about SQL query(if not please let me know):
declare @Count int = 0
set @Count = (Select COUNT(ColumnName) from TableName)
print @Count
Hope that helps.
Thanks..