#1
  1. 300lb Bench!
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Aug 2001
    Location
    New York
    Posts
    2,350
    Rep Power
    61

    Editing a mysql command in mysqlclient


    Ok, this should be a simple one, but I'm not finding the answer via google. I searched devshed as well with no luck.

    So I have a multi-line statement that I ran. I want to edit it and re-run it. I type \e and the command comes up in vi. I edit the sql and hit wq. I'm back to mysqlclient. I know that the edited command has been saved in the buffer because if I type \e again, the edited command shows up.

    Simple question. How do I run that edited command?
    Correspondence chess
    nothingbutchess.com
  2. #2
  3. 300lb Bench!
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Aug 2001
    Location
    New York
    Posts
    2,350
    Rep Power
    61
    Nevermind, I figured it out.

    \g

    does it
    Correspondence chess
    nothingbutchess.com

IMN logo majestic logo threadwatch logo seochat tools logo