Solved

Query

Posted on 2015-01-30
2
89 Views
Last Modified: 2015-02-05
How is it possible that I can run a simple query such as: SELECT * FROM jcost WHERE JOB_ID = 7855; and get (x) number of records. When I run the same query through PHP code written several years ago I get more records (x + n). Are these extra records in cache and SQLyog is only looking at data written to a table (not in cache)? How do I get the extra rows of data? Flush?
 
J
0
Comment
Question by:myvp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Rob_Jeffrey earned 400 total points
ID: 40580930
If you are getting different results I would suspect that the PHP code is accessing a different server or database or even table.

There should be nothing such as cache that would skew the numbers as you've described.
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 total points
ID: 40581086
I agree with Rob.  If phpMyAdmin is available on the correct server, try running your query there.  You should get the same results as running directly against MySQL.

How many records are you talking about and how much difference?
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question