Re: 4 primeiros registros de uma tabela]

Edmilton Neves <[email protected]>
Newsgroups gmane.comp.db.bancosdedados
Message-ID <[email protected]>
Boas Cleiton!

Vc pode utilizar o "limit x" no MySQL e PostgreSQL.
E no Oracle utilize "where rownum < x".
Exemplo:

MySQL/PostgreSQL

select * from tabela
limit 4;

Oracle

select  * from tabela
where rownum <= 4
order by id

Espero ter ajudado!

Att.,

Edmilton Neves

---------------------------------------

Cleiton escreveu:
>
> Oi pessoal...
>
> Como poderia fazer uma pesquisa mostrando os 4 primeiros registros de 
> uma tabela?
>
> Isso em oracle e my sql.
>
> Um grande abraço a todos
>
> Cleiton
> -- 
> Esta mensagem foi verificada pelo sistema de antivírus e
> acredita-se estar livre de perigo.
>
> [As partes desta mensagem que não continham texto foram removidas]
>
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.