Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. And fail if it doesn't match both?
  2. No, it's ACTUALLY impossible -- it's not just hyperbole. Unless you're running this query with only a single user, no outside connections, no INSERT/UPDATE statements, no query cache, etc., you'll NEVER be able to know exactly how long a query will take. This isn't my opinion -- it's fact.
  3. I agree with you -- but you're trying to UPDATE it in advance.
  4. You need another table of cateorgies, and another of questions.
  5. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=317387.0
  6. update yourTable AS t1 SET t1.newField = ( SELECT ID FROM yourTable WHERE name = t1.name )
  7. Or add a "sortorder" column.
  8. Great. Now, back to your question -- which code snippet are we talking about/
  9. Well, then it should be pretty straightforward -- assuming each name has only a single ID, and vice versa. Add new columns called animal_id, theme_id, etc. to the appropriate tables -- these will ultimately replace the name lookups. Then simply issue an update to each table, and use a subquery to pull back the ID for each given name. Then you can drop the other columns -- once you've updated your application code, foreign keys, etc.
  10. You can't use GROUP BY and those title fields together.
  11. I'm guessing it's a delimeter issue.
  12. Are those IDs unique?
  13. I've locked your other two topics -- clearly, you're starting a new thread for each incremental change to the same script. Please keep the discussion in a SINGLE thread. Also, it's bad form to post an entire script.
  14. You're now onto your 3rd thread.
  15. That's because "l_word_id" is a SINGLE string literal value, not a list.
  16. Don't double-post.
  17. Neither -- it increments the month value by 1, nothing more.
  18. Where's the query?
  19. That doesn't make sense -- you got to the "mysql>" client prompt.
  20. You need to re-think your table design first.
  21. Why update the marks on-the-fly? Just calculate them at run-time.
  22. Then don't write queries manually.
  23. Is that output the desired output, or the sample input?
  24. That still doesn't answer my question -- I know you're searching two names, but does it have to match BOTH?
  25. You don't need an entire site, just a page to which you can't navigate with knowledge of the exact URL -- Google won't care.
×
×
  • 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.