-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I exported a live MySQL database (running mysql 5.0.45) to a local copy (running mysql 5.1.33) with no errors upon import. There is a view in the database, that when executed locally, returns a different set of data than when executed remotely. It's returning 32 results instead of 63. When I execute…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
This is a query I am doing with mysql using PHP
This is the query line
<?php
$query = "SELECT * FROM node WHERE type = 'student_report' AND uid = '{$uid}' LIMIT 1 ORDER BY created DESC";
?>
I get the following error
You have an error in your SQL syntax; check the manual that corresponds…
>>> More
-
as seen on Internet.com
- Search for 'Internet.com'
MySQL's query cache is an impressive piece of engineering if sometimes misunderstood. Keeping it optimized and used efficiently can make a big difference in the overall throughput of your application, so it's worth taking a look under the hood, understanding it, and then keeping it tuned optimally.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a table with at least a couple million rows and a schema of all integers that looks roughly like this:
start
stop
first_user_id
second_user_id
The rows get pulled using the following queries:
SELECT *
FROM tbl_name
WHERE stop >= M
AND first_user_id=N
AND second_user_id=N…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I have the following table:
Service_ID feedback
31 1
32 1
33 1 1
I have the sample code to find the sum:
ResultSet res = st.executeQuery("SELECT Service_ID,SUM(consumer_feedback)…
>>> More