Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Yes, but why not use BETWEEN?
  2. It means just that... there's a deadlock that timed out. No problem... just restart the transaction again.
  3. fenway

    SQL, tranfer?

    INSERT INTO... SELECT WHERE???
  4. Echo the actual statement being sent to the server.
  5. Don't *ever* post entire code blocks like that -- totally useless. You're new, so I guess you didn't know. Consider yourself warned. That error means there was something wrong with the query -- if you echo your query, and post it here, it should be obvious.
  6. I don't understand, sorry.
  7. what's wrong with subqueries?
  8. You've stored multiple keywords in a single field... show the query you're using now.
  9. That's a bit of a mouthful... there are plenty of "common sense" rules, too.
  10. show all three table structures.
  11. I'm not sure I understand what the problem is... are you updating data or adding new data every month?
  12. Why wold you break the connection?
  13. What is the actual statement being sent to the server?
  14. You were just given the code...
  15. TLDR... care to summarize?
  16. What about: CREATE TRIGGER Progress_chi_ai AFTER INSERT ON Progress_chi FOR EACH ROW BEGIN UPDATE Progress_par SET percentage = ( SELECT AVG(percentage) FROM Progress_chi WHERE parent_id = NEW.parent_id ) WHERE parent_id = NEW.parent_id; END;
  17. I understand what you mean, but I'm trying to figure out if the select statement is actually getting back more than the "first" town for each user.
  18. Because then only one of the conditions needs to be "in range".
  19. Again, if you're talking about using mysql data that has been successfully retrieved, you're in the wrong forum....
  20. Can you post the table structures?
  21. Don't double-post next time.
  22. Try: DELETE demand, services FROM demand INNER JOIN services ON (demand.source=services.name) WHERE services.name = 'TEST' I'm assuming that you want to delete both rows...
  23. Solved how?
  24. Echo $sql... and what about magic quotes?
  25. There isn't even a query here... are you sure this is a mysql issue?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.