Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. fenway

    query

    If the subsequent tables refer to a LEFT JOIN'ed table, then yes.
  2. Troubleshoot what?
  3. Your VALUES are mis-quoted. You really should be using a DB wrapper.
  4. This sounds like a follow-up to you other question.
  5. fenway

    query

    If you use LEFT JOIN, then any conditions on the LEFT JOIN-ed table fields needs to be the ON clause, not the where clause.
  6. What do you have so far? Hard to follow.
  7. That's exactly what I'm saying.
  8. That's likely a unicode game.
  9. Then that's how long it takes -- you're not exactly benchmarking here.
  10. Echo $query.
  11. Oh, that's different -- if you're simply storing it, and not querying it or updating it, then sure, nothing wrong with that! TEXT holds up to 65K -- LONGTEXT, 4GB. But if this table is going to have a lot of rows, you might want to consider breaking this out into it's own table.
  12. Other than too many indexes, there's little you can do.
  13. You shouldn't be storing that kind of formatted data in a row-based database.
  14. It says "NULL" because you have no where clause -- so it has to read all the rows from one of the tables.
  15. Don't separate date & time fields like that -- otherwise, you'll have to merge then back together for your where clause.
  16. Sorry, I missed that somehow -- then you want " <> ANY ">
  17. Well, you imported it somehow -- so there is a raw text file somehwere.
  18. You are here to help. Anyway, you didnt ask anything, i dont see queston mark on end, so.. My question was :"That depends on how much of your data you want back if it crashes."
  19. You'd use a self-join to find the record you want -- then join the result back to whatever other tables(s) you need.
  20. MySQL tells you why it fails.
  21. Unless you show us the sql file, we can't help you.
  22. MySQL has a LOAD FROM INFILE.
  23. I assume you mean "greater than or equal to", based on a count of 5 for day 1, not 4. select a.day, sum( if( b.daycount >= a.day, 1, 0 ) ) AS cnt from tableA AS a cross join tableB AS b
  24. You know, there are plenty of browser utilities that will allow you to override style sheets as you see fit.
×
×
  • 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.