Re: lmatter[1,6] = '011191' does not work, but lmatter[1,6] like '011191%' works perfectly
Posted in 1998
On Wed, 30 Sep 1998 rfurdzik@paulweiss.com wrote: >[Subject] lmatter[1,6] = '011191' does not work, but lmatter[1,6] like '011191%' works perfectly > Any idea ???? If I do query "Select lmatter[1,6] ..." it returns string > '011191', but Where statement for those criteria does not. Why I can not use > "=" ???? Which version of which database on which platform? Please, when asking questions like this, be specific. What you are seeing smacks of a bug, but we need to know platform, product and version details before anything can be deduced. For instance, on my Sun Sparc 20 running Solaris 2.6, using OnLine 7.24.UC1, I can run the script: SQL[1]: create temp table t (lmatter char(10)); SQL[2]: insert into t values ('011191xxxx'); SQL[3]: select lmatter[1,6] from t where lmatter[1,6] = '011191'; 011191 SQL[4]: This looks like the correct result to me. It isn't a generic problem on all platforms and versions, so we need the details from you before we can do anything useful. > __________________________________________________ > > This message is intended only for the use of the > Addressee and may contain information that is > PRIVILEGED and CONFIDENTIAL. If you are not the > intended recipient, you are hereby notified that > any dissemination of this communication is > strictly prohibited. If you have received this > communication in error, please erase all copies of > the message and its attachments and notify us > immediately. Thank You. > __________________________________________________ > And this is a particularly pointless, not to mention long-winded, addendum to a message sent with world-wide circulation. If it is something under your control, get rid of it in future. If it is not under your control, complain to those who do have control! Yours, Jonathan Leffler (jleffler@informix.com) #include <witticism.h> Guardian of DBD::Informix v0.60 -- http://www.perl.com/CPAN Informix IDN for D4GL & Linux -- http://www.informix.com/idn