Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. fenway

    Hi Guys

    Or remove the duplicates? I suggest you check the link in my sig and see how best to provide the forum members with info about your problem.
  2. Just like I have concerns with "NOT IN"... ;-)
  3. That's not what I intended.... find out how many less-than-16 dates are available, and insert one record into each of that dates N times.
  4. I disagree... the UNION will return the rows in the "order" the select statements are provided; and you can sort each one of the select statements by "name".
  5. Did you even consider my suggestion?
  6. This thread far too long for me to catch up... where do things stand now?
  7. Try UNION DISTINCT (but then you'll have to drop "match type")
  8. Say what? Why are you doing it that way? Use mysql_fetch_assoc() to iterate through the results -- don't issue *another* query for no reason.
  9. Sounds like a count() and a left join... is null.
  10. That's sounds like an accident.. I wouldn't rely on that.
  11. I have no idea what you're talking about.
  12. Careful now... you're on VERY thin ice.
  13. Maybe with mysqli(). Anyway, 600K string concats aren't fast, either.
  14. Why not just count how many are on each day, and assign N orders chronologically?
  15. Multple statements aren't supported by mysql_query(), AFAIK... see my comment above.
  16. If you're confident it's not the "tables" or database, then this is wrong board.
  17. If you're really emptying the table all the time, then use TRUNCATE. Also, use multi-valued insert statements for bulk operations. Even better, use joins to generate the dummy data. MyISAM will leave "holes" during delete operations -- so because your subsequent select statement requires a full table scan, it takes time to page through the records, even though they're "deleted" -- they still exist on disk.
  18. You didn't answer my question.
  19. Yes, it will return in numeric context -- but DATE() won't!
  20. Yes, you can create a summary table.
  21. If this isn't resolved soon, I'll move it to the appropriate forum.
  22. Hold on a sec... you have to specify INTERVAL when "subtracting" dates like that!!!! WHERE DATE(timestampField) = CURDATE() - INTERVAL 1 DAY
  23. And UTF-8 isn't general enough?
  24. I doubt that this can be reproduced reliably... innodb or myisam/
×
×
  • 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.