Received: from noao.edu (root@noao.edu [140.252.1.54]) by hub.org (8.10.1/8.10.1) with ESMTP id e7OIFj524504 for ; Thu, 24 Aug 2000 14:15:45 -0400 (EDT) Received: from reynaud.tuc.noao.edu (reynaud.tuc.noao.edu [140.252.38.6]) by noao.edu (8.9.3/8.8.8/SAG-27Sep99) with ESMTP id LAA21395 for ; Thu, 24 Aug 2000 11:15:44 -0700 (MST) (envelope-from swampler@noao.edu) Received: from noao.edu by reynaud.tuc.noao.edu (8.9.1b+Sun/SMI-SVR4-SAG05) id LAA26061; Thu, 24 Aug 2000 11:15:42 -0700 (MST) Message-ID: <39A5664E.CC23534C@noao.edu> Date: Thu, 24 Aug 2000 11:15:42 -0700 From: Steve Wampler Organization: National Solar Observatory X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: postgres-sql Subject: Question on string value expression wildcarding Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200008/265 I have LIKE expressions: (a) name LIKE 'kp.dhs.%' (b) name LIKE 'kp.dhs%' where the name column contains strings prefixed with "kp.dhs.". I'm using postgresql 7.0.2. Expression (a) fails to match any names while (b) matches all strings prefixed with "kp.dhs", including (as expected) those prefixed with "kp.dhs.". So I take it that ".%" has some special meaning in wildcarding, but my (limited) SQL references don't mention this case. Is this To Be Expected SQL behavior? If so, what expression can be used to match only strings prefixed with "kp.dhs."? Thanks! -- Steve Wampler- SOLIS Project, National Solar Observatory swampler@noao.edu