Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. fenway

    SQL Question

    Actually, that likely is the most efficient option, particuarly in earlier version of mysql.
  2. Those are backticks.
  3. You simply need to join these as derived tables.
  4. Can you give an example of what doesn't work?
  5. 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.
  6. There is no "fixed" number -- it depends on the distribution of the data. The refman has more details.
  7. Don't store phone number as integers.
  8. Whoa... where's the JOIN condition? And don't you want a COUNT()?
  9. What's wrong with null?
  10. That doesn't make any sense for a unique index.
  11. How do you mean?
  12. Show us some sample output without all that group by stuff.
  13. 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.
  14. This is referring to the decllaration of an SP...
  15. I'm not sure I follow.
  16. Then you need a new version of the mysql libraries.
  17. Well, you need to establish what the rate-limiting step is -- are the mysql queries optimized? check EXPLAIN.
  18. Well, debug the result set from your query directly -- otherwise, it's a php logic error.
  19. I think you're mixing ORs and ANDs without parentheses...
  20. Why not? There are ugly sql ways of doing this, but you'd need to tell us more about every possible variation in your dataset.
  21. FTS acts funny on smaller datasts... how big is your table?
  22. What you have seems correct... does it not work?
  23. "Configured Max Per-thread Buffers" -- how is that being calculated? usually that's the worst-case scenario, so it's likely to be true.
  24. If there's a timeout on the server side, you have to run your script in smaller steps.
×
×
  • 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.