Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. That still means you want a query to run periodically -- 5.1 has an event scheduler built-in.
  2. I've no idea what you thought this had to do with MySQL. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=311085.0
  3. I don't understand -- you want to run the query every X, or the result to be based upon X?
  4. Well, maybe I don't understand what you're trying to achieve.
  5. I still don't see why you just can't join it directly and combine the ON conditions.
  6. Why do you have a subquery in the right join?
  7. Yeah, don't.
  8. There are no materialized views in mysql, so it's basically the same.
  9. fenway

    indexes

    Only on the "right" table of any join.
  10. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=310669.0
  11. There's no "locking read" -- that's pessimistic locking that you'll have to build into your application.
  12. fenway

    Collation

    What language are you storing?
  13. Then you've got a php problem.
  14. Now I'm really confused -- what are you trying to achieve here?
  15. Drop the GROUP BY / aggregate part, make sure it's reasonable output
  16. Of course... I simply assumed that's why distinct was there to begin with. That's what I get for not reading.
  17. I don't understand what you mean...
  18. Sorry, I'm very confused -- how does DISTINCT return more than one row here?
  19. Use IN, not =.
  20. Covers: Part 1: Using the MySQL Improved Extension, mysqli Part 2: Using the MySQL Extension, mysql Part 3: Using the PDO Extension With MySQL Driver, pdo_mysql Part 4: Using the MySQL Native Driver for PHP, mysqlnd Tutorial is here.
  21. Well, a scalar subquery, that is.
  22. Hopefully this presentation will stay online at scribd... it's simply fantastic, probably the best I've come across in recent memory. At 220 slides, it's quite lengthy -- but the lessons learned are invaluable, so be sure to read all the way to the end. A MUST READ!!!! EDIT: This year's version of the presentation -- some really great stuff in here, particuarly about hierarchies.
  23. At the 2008 MySQL Conference and Expo, The Pythian Group gave away EXPLAIN cheatsheets (PDF).
  24. This resource covers a very broad range of topics... it's worth a look, though, especially if you're stumbling in the early stages of configuration.
  25. Basically, this blog contains a regularly-updated run-down of MySQL functions, with a short description and a few hints on how to use them; RSS feed here.
×
×
  • 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.