I have code that issues an SQL SELECT against a MySQL database that is returning 1 row. If I copy & paste the SQL (from my own PRINT or from what I see in the DBI trace) into PHPMYADMIN's SQL for the same database on the same server, the result set is 6 rows.
Before I post code, which is gonna be kinda useless since no one has the data from the database, can anyone offer any suggestions on where to look for a solution? I will post code and results as needed.
My appreciation for any suggestions.
Dave*********************************
UPDATE AT 5:18 PM ET on 10/18/11....
This problem is not with Perl or my code but with how I setup PHPAdmin. I believed it to be pointing to my prod DB server but it isn't. When the Perl program points to my test DB, it works fine. My apologies for raising this issue.
Thanks for the fast attention to my question, all!
Dave
*********************************
FINAL WORD ON THIS AT Noon ET on 10/19/11....
I had made errors during setup of PHPAdmin such that when I thought I was looking at my prod db server, I was still looking at my test server. This affected everything I used PHPAdmin for, including replicating between the systems. When I issued the raw SQL call to the prod server, PHPAdmin was issuing the query to my test server while my PERL program was issuing the query against the real prod db. All is fixed now!
Again, thanks to everyone who contributed ideas and suggestions.
DaveIn reply to SOLVED: DBI SQL Returns Less than Direct SQL by DaveNagy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |