Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. Assuming that everything is UTF-8, there shouldn't be an issue...
  2. fenway

    search help

    There's a sticky on this forum that describes how to obtain the EXPLAIN output -- you've provided your table definition (also helpful).
  3. Perhaps because you're declaring your variables after you use them...
  4. Assuming you're using MyISAM, use COUNT() -- unless you want to query the metadata using the I_S tables.
  5. What was the solution?
  6. What was the solution?
  7. MERGE just makes it easier to not have to update code to deal with "moving" records... for example, you can have a MERGE table called "record_archive", which contains all "old" rows from "record" table after a certain date. But, using MERGE, that record_archive table could actually be 10 underlying tables, one for each of the past 10 years. When you add a new year, you don't have to do anything to the codebase -- you just change the MERGE table definition. Make sense?
  8. You have to repair this table before you back it up -- there's no other choice.
  9. FULLTEXT searching may not help you... you may want to look into Lucene/Sphinx.
  10. You mean SHOW CREATE VIEW?
  11. Assuming there isn't a tie.
  12. Please echo $sql and post it here.
  13. What record, what table?
  14. There's a list somewhere on the mysql website...
  15. What error do you get?
  16. I have no idea what you're talking about.
  17. That is, make it a proper DATETIME field.
  18. How can it be selecting the "wrong id"? It's random...
  19. It's all of the NULL indexes... why not you have any?
  20. fenway

    join query

    There are also some excellent stickes.
  21. What version of mysql? What is the full query you are using?
  22. I would run ANALYZE TABLE first to make sure everything's up to date... can we see the table structure?
  23. Plesae echo $sql... and you need to escape your variables BEFORE preparing the statement.
  24. Why use timestamps at all? Insert a proper SQL-99 date YYYY-MM-DD HH:MM:SS
  25. fenway

    search help

    Post the EXPLAIN output... I'm sure you'll see the WHERE clause is only being applied to the last table.
×
×
  • 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.