Retornar quantidade de registros de uma tabela
-
<r>Bom dia pessoal,<br/>
<br/>
alguém conhece alguma função capaz de retornar apenas a quantidade de registros de uma consulta sql?<br/>
<br/>
Encontrei a função <I><s>[i]</s>Obter quantidade de colunas em uma tabela<e>[/i]</e></I>, mas não outra que retorna a quantidade de registros (count).<br/>
<br/>
Poderia fazer uma consulta utilizando a função count do banco e retornando para uma variável tabela, em seguida pegar esse retorno e jogar para uma outra variável, mas gostaria de saber se possui está função já.<br/>
<br/>
Obrigado!</r>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Cadastrar Login