Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. fenway

    Join command

    Sorry, what are you trying to achieve?
  2. This seems like a php question.
  3. Use an IF() in the where clause instead.
  4. You'll need to count them separately.
  5. Not really... there's no simple way to combine them.
  6. If you don't need to access the images across multiple machines, save yourself the headache and just store a relative pathname.
  7. I don't understand your question.
  8. Parsing errors are outside the realm of mysql.
  9. Add those two expression as additional ORDER BY "columns".
  10. I'm sorry, I don't follow -- maybe someone else will help.
  11. If you're just checking to see if a given unique value exists, use count(*) and check mysql_num_rows().
  12. We're going to need at least the query itself, and the EXPLAIN output.
  13. You mean a GROUP BY, COUNT(*) with an ORDER BY clause?
  14. You can use a HAVING clause to remove them entirely, or ORDER with that expression.
  15. Sure.
  16. Get the result set working first, then worry about the ordering.
  17. Same exact column type/definition?
  18. How about show us the actual sql statement... and tables?
  19. If you can suffer through the setup, then yes.... otherwise, weighting it like you've written may be inefficient but appropriate for small workloads.
  20. Yup, just as I suspected... utf8_bin... a binary, case-sensitive, collation.
  21. Show us the table definition.
  22. Huh? Are you asking why you would do it? How would I know?
  23. Well, a FULLTEXT search with return relevance, but if you want any control over it, you have to do it yourself -- or use a third-party solution like sphinx.
  24. fenway

    table naming

    Please don't -- and by that I mean (a) don't make a separate table for each user and (b) don't use a hyphen in your table name.
×
×
  • 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.