Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Besides, exact values for pagination is just slow -- Google doesn't do it, either.
  2. This has nothing to do with mysql.
  3. The delimited list is only appropriate for summary tables.
  4. Don't use these values as counters -- that's just wrong. Nothing will work properly if you reset them. Trust me.
  5. MySQL will return the rows that match ANY of those values. Why do you want it 3 times?
  6. Cleanest, yes; fastest, no. The most efficient way to is to self-join N times -- as long as N is small.
  7. In general, use case-insensitive collations -- no performance hit.
  8. Echo the query.
  9. Drop the joins, get the desired grouped result first, then join.
  10. Good -- now post the output you get from each one, and what you want instead.
  11. Store this as min/max values, with a text label.
  12. That's because you can't mix JOINs and GROUP BY that way -- and you can't rely on any non-aggregated columns, either.
  13. Yup, this is caching -- no reason to post the script in the mysql forum.
  14. Don't mark your posts with "urgent" -- it's against the ToS. And besides, I don't see a question.
  15. The table prefixes are not included -- use an explicit column alias.
  16. Don't build the query, build the clauses -- push onto an array, join at the end.
  17. If you really wanted, you could look up the index column in mysql's table, but it seems like a bother.
  18. Don't generate users or view on-the-fly -- that's not a good approach.
  19. You don't get a choice -- specify them -- typing is easy.
  20. I'm not sure what you want us to do with that statement.
  21. I mean it depends which DB class you're using.
  22. What does the error log reveal?
  23. I suppose you could simply add them as scalar subqueries....
  24. It's not -- that's crazy talk. You're using the (default) case-insensitive collation -- that's a good thing. If you want a case-sensitive match, then collate as BINARY. -- see here.
×
×
  • 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.