Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8B472632A86 for ; Sat, 10 Jul 2010 04:57:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 73791-05 for ; Sat, 10 Jul 2010 07:57:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id E39A4632661 for ; Sat, 10 Jul 2010 04:57:26 -0300 (ADT) Received: (qmail invoked by alias); 10 Jul 2010 07:57:24 -0000 Received: from mue-88-130-60-189.dsl.tropolys.de (EHLO [192.168.0.113]) [88.130.60.189] by mail.gmx.net (mp003) with SMTP; 10 Jul 2010 09:57:24 +0200 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX19XroRmE8xXQnU+yn+082nYhDsRh4WB8YquvfT1Iv GYS8/u70UASwEa Message-ID: <4C3827E3.3080408@gmx.net> Date: Sat, 10 Jul 2010 09:57:23 +0200 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: postgres list Subject: How would I store little key-Nr to text lists? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-5 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/55 X-Sequence-Number: 34368 Hi how would I store little key-Nr to text lists? Like e.g. colors 1 red 2 green 3 blue Maybe I later also need to add 4 yellow? Obviously the numbers are used for foreign keys in data tables and the texts appear in selects. On the other hand users should chose from listboxes in an application so I need to be able to read the (key, ext) tupels. For now I use 2 column tables that in selects get joined to a data table. Is there a more clever way ?