MYSQL:如何使用MYSQL命令行的自動補全功能
使用MYSQL -I命令,查看MYSQL命令的參數,其中對--auto-rehash參數的說明如下:
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
www.2cto.com
網上也找了一些資料,說是打開MYSQL的自動補全功能,類似於LINUX的TAB鍵補全功能。
但如下使用該參數後,輸入SQL命令,中途按TAB健,並未出現自動補全的效果,不知道如何操作:
[sql]
C:\Users\qxl>mysql -u root --auto-rehash
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29
Server version: 5.1.28-rc-community MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use test
Database changed
mysql> select * from newnam