我在CMD里面写了SQL语句了,为什么我一按下enter键的时候,那么即使按了删除键,却无法把上一行的给删除,如何才可以将上一行删除。
我已经写了的已经执行了的怎么修改啊。
是不是CMD中 有什么特别的使用方法,mysql用到的CMD的小技巧有哪些啊。

解决方案 »

  1.   

    没有办法删除上一行的。mysql> select test from ssad
        -> where
     < 只能删除当前行。或者你用 \c 取消整个个命令。
      

  2.   

    mysql命令行工具没什么太多的技巧。 你可以按 help mysql> select test from ssad
        -> where \c
    mysql> helpFor information about MySQL products and services,
       http://www.mysql.com/
    For developer information, including the MySQL Ref
       http://dev.mysql.com/
    To buy MySQL Network Support, training, or other p
       https://shop.mysql.com/List of all MySQL commands:
    Note that all text commands must be first on line
    ?         (\?) Synonym for `help'.
    clear     (\c) Clear command.
    connect   (\r) Reconnect to the server. Optional a
    delimiter (\d) Set statement delimiter.
    ego       (\G) Send command to mysql server, displ
    exit      (\q) Exit mysql. Same as quit.
    一般来说命令行工具写脚本比较方便。另外看得比较清楚。
      

  3.   

    呵呵,没有,在MYSQL的命令行下功能 没有在WINXP DOS下功能强大,刚开始使用的时候,
    也不习惯。