Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. That's quick strange... even after ANALYZE?
  2. I'm assuming Monday is long gone -- though we do have a strict "homework" policy. However, if you still can't figure something out, feel free to ask.
  3. Huh? What's the mysql question here?
  4. fenway

    SQL Question

    Actually, that likely is the most efficient option, particuarly in earlier version of mysql.
  5. You can use instead.
  6. Those are backticks.
  7. You simply need to join these as derived tables.
  8. Can you give an example of what doesn't work?
  9. Well, you sort of have no choice -- you have to "check" if there has been another reply by someone else -- but you don't have to check it in real-time.
  10. There is no "fixed" number -- it depends on the distribution of the data. The refman has more details.
  11. Don't store phone number as integers.
  12. Whoa... where's the JOIN condition? And don't you want a COUNT()?
  13. What's wrong with null?
  14. That doesn't make any sense for a unique index.
  15. How do you mean?
  16. Show us some sample output without all that group by stuff.
  17. Does it not have something like that built-in? Otherwise, you simply need to issue a simply query and count the number of matching rows for a given team name -- if it's > 0, then you have a dupe.
  18. This is referring to the decllaration of an SP...
  19. I'm not sure I follow.
  20. MySQL doesn't have built-in functions for that.
  21. Then you need a new version of the mysql libraries.
  22. Yup... then just skip the first record.
  23. What you return in your column list has nothing to do with how to mysql finds the matching records -- you need an ON clause.
  24. Well, you need to establish what the rate-limiting step is -- are the mysql queries optimized? check EXPLAIN.
×
×
  • 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.