Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CAD2C632568 for ; Sun, 12 Apr 2009 05:53:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93947-07 for ; Sun, 12 Apr 2009 05:53:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f169.google.com (mail-bw0-f169.google.com [209.85.218.169]) by mail.postgresql.org (Postfix) with ESMTP id D4028633E31 for ; Sun, 12 Apr 2009 04:36:17 -0300 (ADT) Received: by bwz17 with SMTP id 17so3128067bwz.19 for ; Sun, 12 Apr 2009 00:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8q0J1Er0LyPPDwWK50Fyr+CtD3r3Sho6KBFPePCJSgk=; b=xe4lM7o9rmkyTISS1jt0AQRCXnYpxZ8M0tvTRhJOtVuvmeJjbOC97HeZJb5McLF+8W asefzQ1WA4HxciAqhMWAD19nJuVp9P24ks7OPKeIFDzOpBlKjPkUQFGCA7QukXq5a/Oc vCUHPO3FtpvIPtvQADKD+P3pgqVHYTN9tgarw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jYNCdn6a58SUUbYtCs7SOOkmjdqMtzw1ZijE1CrHNnjj821VMnm9SedZWYDBNk1cHp PJ6urDDkOemNcgykxJcjWX0K7/RWn9L5PV+DtNYNxbRvHCH8GzAgPcYKAAhxh0wXBtlO jBblDmBXIBf7aFb84ueFTbBRSUXkHNDZFXUWs= MIME-Version: 1.0 Received: by 10.223.120.197 with SMTP id e5mr1457549far.25.1239521776216; Sun, 12 Apr 2009 00:36:16 -0700 (PDT) In-Reply-To: <60074.805.qm@web33104.mail.mud.yahoo.com> References: <60074.805.qm@web33104.mail.mud.yahoo.com> Date: Sun, 12 Apr 2009 09:36:16 +0200 Message-ID: <162867790904120036o1d2ae20dn9fbdc0fc4640a06e@mail.gmail.com> Subject: Re: ERROR: operator does not exist: date ~~ unknown From: Pavel Stehule To: Rohit Suman Cc: pgsql-sql@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/55 X-Sequence-Number: 32401 Hello it means - there are not operator LIKE for datatype date. Why do you do it? Try to look on date_part or extract functions. Fast solution, bot not optimal, is cast date to text via function to_char(date, 'mask') regards Pavel Stehule 2009/4/12 Rohit Suman : > Hi > > I've a table bins in which I've a column named "Date In"=C2=A0 which stor= es > values of "Date" type. I've postgresql 8.3.5 > > Now when I execute query " select * from bins where "Date In" like '%'; "= I > get the folowing error : > > > SQL error: > > ERROR: operator does not exist: date ~~ unknown > LINE 1: select * from bins where "Date In" like '%'; > ^ > HINT: No operator matches the given name and argument type(s). You might > need to add explicit type casts. > > In statement: > select * from bins where "Date In" like '%'; > > Please help...I'm stuck for like 3-4 hours now on this X_X > > Rohit > > ________________________________ > Add more friends to your messenger and enjoy! Invite them now.