MySQL Forums
Forum List  »  Portuguese

Re: Consulta por periodo
Posted by: Aldo Nakamura
Date: April 09, 2007 05:08AM

Caro colega, será que isto lhe ajuda?

SELECT * FROM pagamentos WHERE DtPagto BETWEEN '2007-01-01' AND '2007-01-31'

DtPagto é o campo de sua tabela pagamentos no formato DATE, e substitua os conteúdos de data por variáveis.

Abraços.

Options: ReplyQuote


Subject
Views
Written By
Posted
9347
February 26, 2007 11:14AM
Re: Consulta por periodo
7634
April 09, 2007 05:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.