Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You can't do "second to last" -- but you can do second -- so just flip the order clause around.
  2. Well, from the CLI, you can specify how you want your output to be show -- either with \G or with pager.
  3. You may be getting inconsistent data across tables.
  4. What makes you think this is possible?
  5. That's basically it... did you try it?
  6. Or, run a sanitize script that converts these magic characters -- which often crop up when people C&P from Word -- into regular, ASCII characters.
  7. Move the check for TTL > 3 to a HAVING clause -- the result isn't available until "after" the query runs.
  8. Well, a table structure would help.
  9. Depends if you're using strict mode or not.
  10. Well, mysql goes from left-to-right, so you should be ok.
  11. MySQL doesn't "display" anything related to cells... what do you mean?
  12. No, you shouldn't use HAVING... and the difference between COUNT(*) and COUNT(col) only has to do with NULL values.
  13. You need group_concat().
  14. Sounds like you just need a COUNT and a GROUP BY.
  15. FYI, MySQL has no problem storing partial dates.
  16. I'm not sure I follow... did you try adding the where clause directly?
  17. Well, it's still limited to 65k.
  18. Or use SHOW CREATE TABLE.
  19. Echo the actual queries, not your code.
  20. The query determine what "matches" -- with your LEFT JOINs and such -- and you choose with matching table rows get deleted.
  21. The refman is your friend.
  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.