Simplified mysql-e and v code

Source: Internet
Author: User

Mysql-e and v simplify code when using mysql-e to generate results to import a specified file: ● to display the statement itself at the same time:-v ● to increase the number of rows of query results: -vv ● to increase the execution time:-vvv can be used in some monitoring scripts to simplify code [plain] (I) without v Testing: [mysql @ even ~] $ Mysql-uroot-poracle-e "select version (); select now ()">/home/mysql/test. SQL [mysql @ even ~] $ Cat/home/mysql/test. SQL VERSION () 5.5.16-log NOW () 18:06:35 (ii) Bring a v test: [mysql @ even ~] $ Mysql-uroot-poracle-e "select version (); select now ()"-v>/home/mysql/test02. SQL [mysql @ even ~] $ Cat/home/mysql/test02. SQL -------------- SELECT VERSION () -------------- VERSION () 5.5.16-log -------------- SELECT NOW () -------------- NOW () 18:08:40 (3) with two v tests: [mysql @ even ~] $ Mysql-uroot-poracle-e "select version (); select now ()"-vv>/home/mysql/test03. SQL [mysql @ even ~] $ Cat/home/mysql/test03. SQL -------------- SELECT VERSION () -------------- VERSION () 5.5.16-log 1 row in set -------------- SELECT NOW () ------------ NOW () 18:14:05 1 row in set Bye (3) with three v tests: [mysql @ even ~] $ Mysql-uroot-poracle-e "select version (); select now ()"-vvv>/home/mysql/test04. SQL [mysql @ even ~] $ Cat/home/mysql/test04. SQL -------------- SELECT VERSION () -------------- + ------------ + | VERSION () | + ------------ + | 5.5.16-log | + ------------ + 1 row in set (0.00 sec) -------------- select now () -------------- + ------------------- + | NOW () | + --------------------- + | 18:14:49 | + ----------------------- + 1 row in set (0.00 sec) Bye

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.