[pgsql-jp: 36888] Re: 項目毎に件数指定をしたい

mail mail @ mail.rishiri.info
2006年 3月 17日 (金) 20:34:37 JST


rishです。
ACCESSばかりやっているのでちょっと自信ないのですが...
こちらのpostgresql8.1.3では

select * from TABLE1
WHERE f1 IN (SELECT f1 FROM TABLE1 T1 WHERE T1.ID=TABLE1.ID ORDER BY f1
OFFSET 0 limit 2);

でいけるようです。

□■□■□■□■□■□■□■
夢の浮島
Dream Float Island Rishiri Blog
rishiri.info
http://rishiri.info
□■□■□■□■□■□■□■

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.0.385 / Virus Database: 268.2.4/282 - Release Date: 2006/03/15




pgsql-jp メーリングリストの案内