Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. There is an entire section in the mysql refman devoted to this.
  2. That's all PHP-side, not in the DB.
  3. fenway

    Avg of date

    I have no idea what that means.
  4. So, just use multiple name=val for SET.
  5. Sorry, I don't follow.
  6. You'll need to echo the queries you're producing.
  7. It was probably a backwards-compatibility issue... but the first one is preferred for multi-valued options.
  8. Then you need to build the WHERE clause dynamically.
  9. Well, you can drop all of the privileges, but that seems like overkill... just check the GRANTs for that user.
  10. Yes, you can replace the ORs with ANDs -- of course, it means something different. And yes, that's correct -- you need ANDs if you want all 4 to match.
  11. Or DATE?
  12. No, that's wrong -- LIKE is not associative. select * from table where (col1 like '%apple%' or col2 like '%apple%' or col3 like '%apple%' or col4 like '%apple%')
  13. You can't use an aggregate expression in WHERE, only HAVING.
  14. Please use the code tags, we have them for a reason.
  15. Don't ever change them -- ever.
  16. Huh?
  17. That's not going to work in the general case.
  18. Did you try the queries you where given?
  19. Then why not check the max value for the max date in that range?
  20. Not sure I understand -- you want the update syntax, or a trigger?
  21. Sorry -- you want to make it 10000 if it's zero?
  22. If you didn't have the log turned on before, it's not going to help to turn it on now.
  23. This really isn't the correct place for php parsing errors.
  24. You posted your DB credentials to the world -- I'd change them, NOW. And define "didn't work".
×
×
  • 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.