Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Christoph Schiffer — — source: Informix-list mailing list archive (1991-1998)
Charley Chen a écrit :
>
> Bonjour,
>
> J'ai un problème lorsque j'essaie de sélectionner seulement un certain nombre de lignes
> d'une table. Par exemple, je veux sélectionner les 5 taux de change les plus récents
> pour le dollar canadien. Si quelqu'un a une suggestion ou a besoin
> de plus d'informations, merci de m'envoyer un e-mail. Merci beaucoup.
>
> Charley
>
> E-mail : cchen@transre.com
Mon idée consiste à sélectionner les colonnes souhaitées dans une table temporaire
à laquelle on ajoute une colonne serial.
Cette solution ne nécessite « que » du SQL
:
drop table bla;
create temp table bla
(x serial,
e char(13));
insert into bla (e)
select e from source_table ;
select e from bla
where x <= 5
--
+++++++++++++++++++++++++++++++++
------------------------------------
salutations de Christoph Schiffer \\\\ / Tél. : +49 2104 9385-18
chris@csl-gmbh.net o FAX : +49 2104 9385-55
CSL-GmbH Erkrath / \\\\ http://www.csl-gmbh.net
---------------------------------
++++++++++++++++++++++++++++++++++++
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.