X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 12C33D1B174 for ; Thu, 29 Jul 2004 11:53:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91400-02 for ; Thu, 29 Jul 2004 14:53:00 +0000 (GMT) Received: from vscan02.westnet.com.au (vscan02.westnet.com.au [203.10.1.132]) by svr1.postgresql.org (Postfix) with ESMTP id D31CFD1B16B for ; Thu, 29 Jul 2004 11:52:55 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 58C3D119E17; Thu, 29 Jul 2004 22:52:58 +0800 (WST) Received: from [192.168.1.9] (dsl-202-72-133-22.wa.westnet.com.au [202.72.133.22]) by vscan02.westnet.com.au (Postfix) with ESMTP id DEAF7119DF5; Thu, 29 Jul 2004 22:52:57 +0800 (WST) Message-ID: <41090F50.3090506@familyhealth.com.au> Date: Thu, 29 Jul 2004 22:53:04 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: azah azah Cc: pgsql-php@postgresql.org Subject: Re: inet_aton in mysql, how to convert it to postresql? References: <235b1a280407290245e75fa19@mail.gmail.com> In-Reply-To: <235b1a280407290245e75fa19@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/44 X-Sequence-Number: 2869 > select inet_aton(namatable.host) from ... > > how can i do in postresql?? Try these: http://www.postgresql.org/docs/7.4/static/functions-net.html You need to be using the 'inet' or 'cidr' types. Chris