Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Duplicate topic - http://www.phpfreaks.com/forums/index.php?topic=356569.0.
  2. You're working up to a ban with all of this cross-posting.
  3. Don't mark topics solved without posting the solution.
  4. It's unicode -- case-insensitive -- and one of the "general" collations that includes "common" characters.
  5. All these subqueries make me think something is horribly wrong.
  6. Then please post the final working query.
  7. Where's your GROUP BY clause?
  8. SUM() of datetimes doesn't make any sense.
  9. Oh, it can be done -- it just might be easier to calculate in PHP if this is a "one-time" thing, and then update the corresponding rows.
  10. Sorry, I don't understand the question.
  11. Then why not get all the parents first, then a second query to get their children? Or at least process the results sepearetly?
  12. SQL isn't designed to operate on pairs of rows -- you'll have to fake it with a user variable, or use a self-join, assuming you "know" how to find record N+1.
  13. Assuming you told it to do so with mysqldump.
  14. Or you can use NOT EXISTS.
  15. FYI, that would negate the use of an index -- you might want to add a "fake" time to the RVALUE instead.
  16. Please stop posting your code. And you really shouldn't be posting your DB credentials either -- but as you'll notice from the error message, you're not actually using the password.
  17. If you read the posting rules, you'll notice that we'll need much more information to help you.
  18. You'll need a temporary table to do that -- but given the complexity of your query, I think there's something fundamentally flawed.
  19. I always prefer: select columns from table where date <= NOW() + INTERVAL 7 DAY
  20. +1
  21. What?
  22. What's more, if this has to be done by "tomorrow morning", it sounds like a homework assignment.
  23. Then ask mysql for the error.
  24. Yes, except you can't merge * and GROUP BY.
×
×
  • 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.