Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You're not closing your column list with a parent.
  2. Well, I don't see any reference to month/year in your join condition.
  3. Just suggesting that BETWEEN is a simpler operator to use.
  4. The error was simply the fact that the outer table alias isn't visible to the subqueries.
  5. With DATE_FORMAT().
  6. "Topic solved" button right above the quick reply area.
  7. That's *precisely* what enum does. But aschk is correct -- ENUM is usually a futile shortcut for non-system fields.
  8. Then please post your solution for everyone's benefit.
  9. Leave your WHERE clause as-is, and add an expression to your column list -- like CURDATE() BETWEEN start AND end
  10. Like with yet another JOIN?
  11. What does "slip out" mean?
  12. You can try using multi-valued INSERT statements... but yes, php has a max execution time.
  13. Use table aliases and prefixes.
  14. Both PHP and MySQL offer md5 functions.
  15. You could use IF() to check for the Y condition in the order by clause.
  16. Huh? You're only getting back one field.
  17. No, square brackets are not ok.
  18. That's something called a "cross-tab".
  19. So you're trying to join those tables base on name and month/year?
  20. Not sure this is really a mysql issue...
  21. This looks like a double-post...
  22. 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.
  23. Well, a scalar subquery, that is.
  24. 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.
  25. At the 2008 MySQL Conference and Expo, The Pythian Group gave away EXPLAIN cheatsheets (PDF).
×
×
  • 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.