Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Sorry, what?
  2. Give me an example of such "loops".
  3. Well, don't you necessarily need to know when each game was played?
  4. The first argument to FIELD() should be ProductID.
  5. How are we to know which ones are the "last 3"?
  6. What errors are you getting?
  7. You can use IF() inside SUM(). But you shouldn't get "name" like that.
  8. What are you trying to do?
  9. What part don't you follow?
  10. You're missing the point -- MySQL isn't the problem.
  11. You'll need to add a where clause to select either (a) those without updates (i.e. b.id IS NULL) or (b) those with updates (a.date > b.date), not both. Alternatively, you could UNION these two result sets -- might be easier to read, and definitely faster for the optimizer.
  12. You didn't read the post, did you? Use ORDER BY FIELD().
  13. Well, you haven't told us where the sortorder column is.
  14. Why are you using GROUP_CONCAT?
  15. Why are you storing numbers as VARCHAR?
  16. Yeah, I am using pbpbb so it will also mean would having to find the username without actually typing it in. (too complicated for me to understand) I don't know what that means.
  17. If you want an order, store a sortorder value.
  18. Don't blame MySQL -- Facebook uses MySQL, and they're not looking for alternatives.
  19. Define "special charaters".
  20. Well, a LEFT JOIN will fix the "no updates" problem -- and just drop the group_concat all together.
  21. Well, you'll need table to assign items to lists, and lists to people.
  22. If you mean storing an image in the DB, I'd recommend against it, unless you have a really good reason.
  23. If you have a table called player_game, each player_id should only appear once, correct? That's a UNIQUE constraint.
×
×
  • 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.