Jump to content
Fórum Script Brasil
  • 0

Buscar Só 10 Resultados Do Db



Olá pessoal como eu faço para buscar só os 10 ultimos cadastro no meu BD.

Olhem até onde eu fiz... heheeh quase nada..

Set RecSet = Server.CreateObject("adodb.recordset")

RecSet.open "Select * from mensagem order by id_mensagem desc",conn

if not RecSet.eof then

agora não seu se uso um Do until ou while ou For o que é melhor?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...