We have tried both PHP and Java code to run a MySQL data view. The result set does not match the data that is in the view.
The query is
SELECT * FROM xxxx_v WHERE id = 19
In the view we have the following result: 19, 3120, 1618, 1502
In the PHP and/or Java result set we get: 19, 3121, 1624, 1497
How can the numbers be different?
Maybe check that your getting the data from the correct place?
I don't see how you could be getting data different to what is there, so I would suggest perhaps trying an INSERT statement in the PHP and see if it affects the database your looking at. If it doesn't, then you know you're looking at the wrong one.
An INSERT statement would go along the lines of...
INSERT INTO xxxx_v (user_id, t_count, hits, misses) ("1", "2", "3", "4")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.