Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. You deleted the entire table, but you don't want to empty it? What does that mean? TRUNCATE deletes and resets the counter properly.
  2. Really, the fourth one? What does that represent?
  3. I think that if OPs don't adhere to the rules, they won't get any responses (or shouldn't) -- then they may be "inspired".
  4. If you really want to empty a table, use TRUNCATE, and you won't have this problem.
  5. You'll have to extra the hour from the datetime with DATE_FORMAT().
  6. Use a column alias.
  7. Just space and speed on insert/update.
  8. Where are the quotes? With '$input', you should still see them.
  9. The 4th row? The most recent?
  10. Why would there be two entries? You'll need to limit this either in the join
  11. How do you mean?
  12. Why can't you just add the where clause the the posted code?
  13. Variable is variable... it will take up as much as it needs...
  14. Maatkit has excellent tools like this.
  15. What ! ??? ??? I don't know what I was smoking when I replied... `node_status_type` isn't even a column, so that question doesnt' really make any sense. While the multi-column index would represent all three columns, it's not a simple concaternation... and even if it was, you still couldn't reference it that way. Moreover, why would you want to!?!? Thanks for setting me straight, Barand. I thought the first select was of the first of the columns, and read "or" rather than "instead". My bad.
  16. And what you posted above is the error log? Did you comment out skip-innodb?
  17. Yes, that the problem..no varchar, use a datetime field.
  18. You mean the command-line interface? Check with root and see what permsissions you have from which hosts.
  19. That's right... but if you search for type without status, it won't be indexed. edit: didn't actually read the previous post
  20. Do you have any existing tables? is this a fresh install?
  21. Describe exactly what you're trying to describe.
  22. That means the grants table isn't correct... or the password is wrong.
  23. What do you have so far?
  24. I really hope you didn't think the echo would... it just text to the screen.
  25. This will work: INSERT INTO Table2 (userid,user_email) select userid, email from Table1 where email='$email'
×
×
  • 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.