Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Then you have a php problem.
  2. Don't double-post.
  3. That's not possible... show the explain output again.
  4. Yup... FROM_UNIXTIME().
  5. Missing semi-colon.
  6. You can't use WHERE with INSERT... doesn't make any sense... do you mean UPDATE?
  7. Sure there is... so how did you solve it?
  8. The issue is that GROUP BY returns almost always absolute nonesense for any columns other than the ones you specify in the group by clause.
  9. Either way, I don't understand why the query wouldn't work.
  10. Well, you can use a covering index on both columns, but that's only going to get you so far.
  11. Hmm.. I've only ever encountered this when there's a whitespace character hiding somewhere... can you try settting sql_mode = IGNORE_SPACE just to prove me wrong?
  12. First you need to write the query to produce the desired logic... then wrap it in a trigger.
  13. There are some other issues first, like mixing * and GROUP BY
  14. You'll have to strip out the first character, cast it to a number, and hope that mysql will do the rest.
  15. No, it's in the my.cnf / my.ini file, if it's set. Altenatively, you can simply SELECT @@GLOBAL.sql_mode;
  16. Just create a single folder per "filetype", then santize the file and include the UID in the filename.
  17. Yikes... dependent subquery & no index usage?
  18. Just remeber that timezone "magic" only works on timestamp fields.
  19. I don't really understand.
  20. We have some pretty good tutorials around here, and in the stikcikes.
×
×
  • 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.