Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. This sounds exactly the same as your other thread -- please clarify
  2. At the end of the day, it's still a set of credentials.
  3. Also, PHP will do this much better.
  4. fenway

    Recode values

    You're not too far off -- but you want that CASE expression in your select column list, not your WHERE clause. And the LEFT JOIN with IS NOT NULL is really just an INNER JOIN.
  5. SQL Antipatterns (Bill Karwin) is fantastic if you're just starting out. High-Performance MySQL (Schwartz/Zaitsev), 2nd Ed., is more advanced, but it's still a relatively easy read for at least 2/3 of the book
  6. Did you try?
  7. Without a log of sql statements, it's hard to say -- are you using connection pooling?
  8. Your username & host for the grant must be quoted as string literals.
  9. There's always a way -- just figure out how many different formats you have, and update accordingly.
  10. In fact, the refman says so.
  11. You know, there's a sticky that describes exactly what information we'll need to help you.
  12. You query the DB in whatever way is more efficient -- then it's to you to create you own objects to house the data -- not MySQL.
  13. Not true at all. VARCHAR can be up to 65,535 in version 5 -- and it's much better to use this than TEXT -- which, by the way, has no "size".
  14. That's because the MAX() already uses the aggregated results -- I'm not sure what you're trying to do here.
  15. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=321338.0
  16. The "solution" is to store it different -- I already to you that. Otherwise, you'll have to explode() everything in php.
  17. Slow as hell... use COUNT(*).
  18. Yeah, we can't guess what you're telling the server to do.
  19. Then post it for everyone to see.
  20. Sounds like a simple join on ZIP.
  21. Well, you're not using the data from the database.
  22. Show us the join you had.
  23. Yes -- you're getting back all of the data just to count.
  24. You need a JOIN, is all.
×
×
  • 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.