Solved

Query

Posted on 2015-01-30
2
83 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
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 82

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now