Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. I disagree -- the DOM reference has already been looked up for you in the form's element collection! Why look it up again? That's slower.
  2. This is really a php question (i.e. the layout and the parsing, and what you're searching)...
  3. Why not have a full-text index across all these columns?
  4. Go in stages: 3.23 - > 4.1 -> 5.0. Remember to read up on the incompatible changes between versions, and backup your data (dump and files).
  5. That's not valid syntax... what's CHECK? And what's the PK?
  6. Add them whre? when?
  7. UPDATE yourTableName SET expire = NULL WHERE expire = '0000-00-00'
  8. SELECT SUM(`count`) FROM totalrequest But I wouldn't use function names for column names.
  9. There is a way, but I'm not going to tell you how, because you can always format the output with LPAD().
  10. You mean a SUM() function?
  11. Blank? How do you know, you're not getting it back?
  12. Yes, you don't need the individual indexes if you already included them as the first key for a multi-column index -- which you have.
  13. Well, they're two totally different queries... why run them together?
  14. You asked for *, it's going to give you everything...?
  15. ORDER BY RAND LIMIT 1... but read the sticky first.
  16. Well, let's try the join you have first... why all the group by columns, isn't ID enough?
  17. I'm not sure you really want a three-table join here....
  18. Well, there are certainly ways you can't using it... since the name of the expression is only generated *after* the query is run, you can using it order by / having statements. If you want to use it, you can either (a) use the underlying expression (not the named version), or (b) join it.
  19. fenway

    cache system

    There was a recent post on planet mysql about memcached integration with mysql....
  20. fenway

    MySQL Statement

    That's because you're using distinct instead of group by... but aren't all the other columns going to be different? Why do you have dupes?
  21. Please post your solution... I assume you used `date` > CURDATE() - INTERVAL 40 DAY?
  22. Not really... if you aggregate the group of five, you can't then ask mysql to un-aggregate them.
  23. You can do this from the CLI or from phpMyAdmin... post your current table structure.
  24. fenway

    mysql viewer

    SQLylog, Navicat....
  25. What makes you think you can't use it directly?
×
×
  • 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.