Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. IMHO, over-indexing, either in number or size, is going to be noticeable.
  2. It will be stored if you store it -- but binary data shouldn't be in a database, as a general rule.
  3. You can't use that kind of flow control in an update statement -- you need: editLock = IF( editCount > 2, '1', '0' )
  4. And even so, 1 slow query is worse than 100 instant ones.
  5. Perhaps you're seeing unicode issues.
  6. When you want variable-length BINARY data -- which shouldn't be stored in the DB anyway.
  7. The refman covers it all -- there are dozens of other subtle differences (trimming, index implications, etc.). More importantly, one variable-length column means you can't have any CHAR fields anymore.
  8. I'm not sure I understand why you need to know... unless these two tables were UNION-able.
  9. Not sure where you're pulling those metric from -- 25-50x faster for 8 bytes?
  10. Don't try and make tables "smaller' -- it's just work for no reason.
  11. (2) should be replaced with last-insert-id() -- or whatever the php function from mysqli is called.
  12. Sounds like you just want to sort() in php.
  13. You need to cross join, one for each of the three conditions.
  14. "display" has nothing to do with mysql.
  15. Weird symbols how?
  16. You mean like a JOIN?
  17. Turn on logging, check which user.
  18. INSERT INTO...SELECT WHERE...
  19. Use code tags next time.
  20. If you're referring to a db wrapper class, then must be hundreds.
  21. Best way is to use the mysql commands directly, if you can connect to both with the same user.
  22. And there is no such thing as urgent free help.
  23. I don't follow -- are you saying that mysql is giving you the correct results, but you just want to format to output differently?
×
×
  • 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.