Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I don't understand teh question.
  2. Then you mysql(i) libraries aren't up to date.
  3. I'm not sure I follow.. you're looking for unique load_ids?
  4. You can always use USE INDEX, or FORCE INDEX if you're stuck.
  5. Maybe I'm missing something here... why not simply timestamp each update? Isn't the most recent the most up to date?
  6. Well, if you're in a transaction, you can set them all to NULL first.
  7. How is it any different?
  8. I'm talking about this.
  9. Please use code tags next time... and don't as for help on skype.
  10. fenway

    mysql query

    Well, DISTINCT happens after the ORDER BY, so in principle, you can "discard" the others.
  11. And did you check those errors?
  12. You need a LEFT JOIN, not an (implicit) inner join: SELECT list_items.*, categories.* FROM categories LEFT JOIN list_items ON list_items.cat_id=categories.id ORDER BY list_items.cat_id
  13. Try thinking about this from the inside-out, then piece the query back together.
  14. You can use FIELD() in your update statement... just specify the desired order.
  15. A dozen? Maybe i've lost you.
  16. You need to use OLD_PASSWORD().
  17. You can use an OR.
  18. Sorry, I don't follow.
  19. fenway

    ENUM fields

    You'll have to parse SHOW COLUMNS, or in mysql 5, use the information_schema tables.
  20. Let the DB worry about how to store these -- use datetime if you want a absolute date/time, timestamp if you want it to be timezone-aware. Otherwise, you can display it how ever you'd likeon the way out.
  21. What are you trying to equte to a UID?
  22. Just remember that FULLTEXT is funny.
  23. You'll need another table with the ranges... store min/max, and then link the uid to this table.
  24. fenway

    date field

    Don't do that... use a proper date picker, and have it submit YYYY-MM-DD to the database.
×
×
  • 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.