Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. fenway

    Exporting!

    The export is mysql... the rest is php.
  2. You can use SELECT ... INTO OUTFILE.
  3. SUBSTRING(post FROM LOCATE('http://',post) FOR LOCATE(' ',post,LOCATE('http://',post))-1) AS url
  4. You should be able to search for the first whitespace.
  5. Sure... join the table with a left join using user_id in the on clause, then use IFNULL() for each field.
  6. Unless your collation is case-sensitive (not the default), this won't do anything at all.
  7. 1) LENGTH(yourField) = 5 2) UPPER(lastName), LOWER(firstName) 3) I don't know your table structure 4) UPPER(LEFT(address,1))
  8. What's in "post"? The whole things?
  9. No one will ever have a second e-mail? If so, one table it is.
  10. I don't understand your idea.
  11. This "date arithmetic" functionality was added in v3.23 -- I seriously hope no one is using anything prior to that release (or that release, for that matter). So it's quite safe to use; and IMHO much easier to read without extra parens.
  12. In fact, this is only way.
  13. As long as no user will ever have 2 emails/passwords, you're right... but I would question the fromer.
  14. Export a table into what?
  15. First line/
  16. Database of what?
  17. Why LOWER()? That's bad for index usage!
  18. What I mean what that there were "incomptable changes" between versions, so it could have affected your data and your queries!
  19. We'll need more details...
  20. Various flavours of TEXT come to mind...
  21. fenway

    db optimization

    Don't even consider *not* storing the ID.
  22. It's called a derived table... just write the query and wrap it in parents, and put it in place of where you would put the table name.
  23. Can we some some relevant code snippets?
  24. And you've already read the sticky on this topic?
  25. There an $optionl there... echo the query strying.
×
×
  • 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.