Re: Query structure puzzle

2002-03-03 Thread DL Neil
John, > > > I can see no explanation in the data stored in the table. > > The important thing is what MySQL 'sees'! > > > > You've already started testing your premise << > are > > either "input" or "published">>> One suggestion would be to use the > > MySQL client for investigations, then if you

Re: Query structure puzzle

2002-03-02 Thread John Hughes
I ran the following command to change the status field from a varchar text to ENUM("Input","Published") NOT NULL $sql = "ALTER TABLE $table_name CHANGE status status ENUM(\"Input\",\"Published\") NOT NULL "; The changes took effect according to the comm

Re: Query structure puzzle

2002-03-02 Thread Jeff Kilbride
Have you tried running these from the command line mysql client, to see what may be up? Maybe you have a variable in your code that's not getting re-initialized properly. If you get the same results from the mysql client, it might be time to run myisamchk on your table. (or just dump the data, dr

Re: Query structure puzzle

2002-03-02 Thread John Hughes
--- DL Neil <[EMAIL PROTECTED]> wrote: > John, > > > I tried using LIKE \"%published%\" and even LIKE \"%ub%\" The > > results are the same as when I attempt = \"published\" > > > > Something in the query processing works differently when = is > used in > > the WHERE. > > > > I can see no expla

Re: Query structure puzzle

2002-03-02 Thread DL Neil
John, > I tried using LIKE \"%published%\" and even LIKE \"%ub%\" The > results are the same as when I attempt = \"published\" > > Something in the query processing works differently when = is used in > the WHERE. > > I can see no explanation in the data stored in the table. The important thing

Re: Query structure puzzle

2002-03-02 Thread John Hughes
I tried using LIKE \"%published%\" and even LIKE \"%ub%\" The results are the same as when I attempt = \"published\" Something in the query processing works differently when = is used in the WHERE. I can see no explanation in the data stored in the table. John Hughes --- Jeff Kilbride <[EMAIL

Re: Query structure puzzle

2002-03-02 Thread John Hughes
--- Georg Richter <[EMAIL PROTECTED]> wrote: > On Saturday, 2. March 2002 09:32, John Hughes wrote: > > I have a table with approximately 600 rows. Two of the fields are > > "record_date" and "status" Every record has an entry in the > > "record_date" in -00-00 format. The "status" is eithe

Re: Query structure puzzle

2002-03-02 Thread Georg Richter
On Saturday, 2. March 2002 09:32, John Hughes wrote: > I have a table with approximately 600 rows. Two of the fields are > "record_date" and "status" Every record has an entry in the > "record_date" in -00-00 format. The "status" is either "input" > or "published" (I DID NOT create this colu

Re: Query structure puzzle

2002-03-02 Thread Jeff Kilbride
If your condition that the status field only contains two values holds true, then there should be no difference in the two queries you have below -- that I can see, unless someone can prove me blind... Are you *absolutely* sure none of the columns contain extra spaces, nulls, etc...? You might tr