Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Not true.
  2. I don't understand what you mean.
  3. fenway

    Adding indexes

    Sorry... don't have much experience with that.
  4. Sounds like you need to build the where clause on the fly.
  5. At some point you'll hit the FS limit on files.... but you'll hit other practical limits way before them.
  6. I don't understand.
  7. Are those single-quotes?
  8. Retrieved in batches? Somewhere the data was entered one at a time...
  9. Yes, I understand -- so could you explain this in plain English?
  10. That option wasn't clear from the query.
  11. So you're inserting records into this "additional table" as you go along? I'm confused... why not just timestamp them?
  12. Why not (language_id, sort )? And why the left joins?
  13. Like I said, let's see what those two expressions are equal to.
  14. My guess? PHP is having trouble parsing that... use curlies.
  15. fenway

    Zip Codes

    Forget about the field for zip codes -- make another table, and make one record per zipcode/company_id pair.
  16. How can Barand's not work? Put those two expressions in the select column list and check them
  17. How can you do this currently?
  18. Then could you explain what you're trying to do, and post the table structures?
  19. You want 10 from each?
  20. Can we see the insert query? Is it the first TIMESTAMP column?
  21. Why do you need a new table? Why not just JOIN the table to itself?
  22. Sorry, I misread your original post, I thought you wanted them all weighted equally. The problem is that SQL doesn't really have a mechanism for "extrapolating" rows in a way that would make this easy. Depending on how "random" you want it to be, you can multiply the number of posts by RAND(), and pick the highest value...
  23. "Split the information"? I really hope you're not storing the date as three separate fields....
  24. So you want an UPDATE statement with a WHERE clause that matches the ID of the record.
  25. So you're saying you've run this query from PHPMyAdmin and it returns records, but not from your script? Also, MySQL can be very lenient in storing date/times.
×
×
  • 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.