Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. fenway

    No Results

    Debugging SPs is annoying -- but insert into a dummy log table at every step of the way, and you'll see what's going wrong.
  2. I don't see a hierarchy anywhere.
  3. The only way I've ever handled this is with user variables -- store the last score, and a related counter. Increment the counter each time the score is the same, otherwise, reset both.
  4. And next time you post entire scripts -- let alone outside code tags -- I'll lock the thread.
  5. You can't use GROUP BY that way --
  6. You can have a unique index constraint across multiple columns.
  7. Yes -- one query at a time. Seriously.
  8. Don't even consider doing this -- this is a horrible, horrible idea.
  9. Drop the parens around your select column list.
  10. Never post the entire code. And this isn't a mysql problem.
  11. I don't see what happens when you click submit -- but that's not a mysql question anymore.
  12. You're looking for LAST_INSERT_ID().
  13. Yeah, you can use * with LIKE, but it's slow. Yes, if you store min/max, you can use BETWEEN. As for keywords, there are different options -- if it's not crazy large a simple EAV table will suffice.
  14. What alter statement are you talking about?
  15. You'll need user variables.
  16. Chunk the records.
  17. What?
  18. You need a group by
  19. That's not english.
  20. Is this a new problem?
  21. fenway

    question

    Say what?
  22. Huh?
  23. Sorry, I don't follow.
  24. To clarify, I don't know what's even parsing that xml, or how it's being handled.
  25. Not that it would be particular efficient, but you could strip out the numeric part dynamically and then sort of the remaining string as a secondary ordering clause.
×
×
  • 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.