Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You'll have to join it back to the main table.
  2. Drop the single quotes... and there's no "AND" for a column list.
  3. Use COUNT(*) and GROUP BY cat, sub.
  4. You're asking if DELETE will also SELECT? No, it won't. if you want both, you have to do both.
  5. What's wrong with a db abstraction layer?
  6. I'm sorry, I don't understand.
  7. I belive there's a UDF for filesystem stuff... but you should be able to "mark" your records appropriately regardless.
  8. You can easily work around that... use a cartesan join in definitely worse.
  9. You can use INTERVAL to save doing the math.
  10. Yes, what is your definition of "update" here...?
  11. Sorry, I thought you were the OP... my bad.
  12. Yikes... let's start again.... why can't you simply count the number of posts per thread???????
  13. yikes... talk about an table in need of normalization......
  14. Second link; slide #68 onwards -- the "closure set" -- is a very practical implementation!
  15. If you COUNT(fieldName) instead of COUNT(*), you will exclude NULLs.
  16. You can't find the "last" order unless you store temporal data somehow.
  17. Yes... you didn't specify a column type for the UID field.
  18. GROUP_CONCAT is your friend.
  19. fenway

    MYSQL Like

    Actually, "_" (underscore) is the single character marker and "%" (percent) is the multi-character marker.
  20. I don't understand the question -- I was trying to figure out why they weren't being updated. But ultimately if you import "blank" then you'll get blank -- not null.
  21. Well, you'd need to count by venue first.
  22. Check the LENGTH() of these fields to see what's going on.
×
×
  • 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.