Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. The mysql refman has all of the syntax for MATCH... AGAINST()... but it should just be quoted.
  2. fenway

    query issue

    You need an index on schedule_room.scheduleid, and on studentrecord_daily.student_id, at the very least. And of course, fix the column types.
  3. I'm getting to this rather late -- but why can't you simply enumerate the rows and use HAVING to pull out the ones mod 120? Yes, the "end" is a boundary case, but it's easy to find the "last" one.
  4. In fact, don't use any fancy editor at all -- it's just text.
  5. Don't start a new thread for questions on the same query.
  6. What did you expect? You have a FULLTEXT index on multiple columns. You're asking MySQL to decide which words matter. Of course, you could have searched the "phrase".
  7. Or, if you don't want to have annoying problems later, save each "side" of the score as a separate row, and tie them together with game ID, and flag as "home" or "away".
  8. Also, I want an ON clause for each and every table being JOIN'ed.
  9. If your hosting provider won't tell you how to connect to your database, get a new host.
  10. It's a really bad idea to mix commas and JOINs.
  11. Sorry, I don't follow.
  12. Perhaps with a COUNT DISTINCT.
  13. Why do you want to combine them?
  14. Yeah, that's not what a database engine is for.
  15. If you include this expression in your SELECT column list, you'll see why.
  16. Actually, that's what an INNER JOIN would do.
  17. ORDER BY FIELD(sort, sort) ASC. Bizarre casting.
  18. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=352056.0
  19. Then you get to decide...
  20. I don't believe it should be in the php section. I believe that you should post SQL statements, not PHP that produces mysql statements, with variables that need to be interpolated. For all we know, your $query could have started with a dollar sign.
  21. You just need to have your unique key span both columns.
  22. The only problem was that, still, you have NOT posted a single mysql statement.
  23. There's a sticky that covers all of the rules.
  24. Amazing that you posted a mysql question with so much as a mysql query.
  25. You need to alias after END, not before.
×
×
  • 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.