rem
cd C:\Program Files\MySQL\MySQL Server 5.0\bin
mysql -u root -p*******
use publish;
select * from book;
QUIT
这么写链接到mysql后 use publish;等语句都没有执行,该怎么写,请教!
rem
cd C:\Program Files\MySQL\MySQL Server 5.0\bin
mysql -uroot -p****** -Dpublish -e "select * from book"
mysql -uroot -p****** -Dpublish -e"deletefrom book where id = 34"
这样就可以了
原帖由 hbuyyh 于 2008-10-27 19:30 发表
rem
cd C:\Program Files\MySQL\MySQL Server 5.0\bin
mysql -uroot -p****** -Dpublish -e "select * from book"
mysql -uroot -p****** -Dpublish -e"deletefrom book where id = 34"
这样就可以了
这样不友好吧?