\g,sql Select if too long, you can put \g in the back, vertical lines show ~ ~ ~

Source: Internet
Author: User
Tags sql select if

1. Use \g to display results vertically by row
If the line is long and needs to be shown, it is very uncomfortable to look at the results.

Use \g instead of semicolons to end the SQL statement or command, and you can output the value of each row vertically.

Mysql> SELECT * from tf_product\g;

***************************1. Row ***************************ID:1Title:3434Title_remark:remark Price:9600Old_price:0Title_img1:site_upload/title_img1/20170831/1504178909_233791261.png title_img2:site_upload/title_img2/20170831/1504178910_418081069.png high_light: Dangerous Autumn clean moved to Sapporo Homestay Ocho Live%I went to biei the next day.%Take photos before lavender and upload to Weibo is_new:0Is_rec:0is_coupon_enabled:1Status:1Is_del:0Addtime:1504178909***************************2. Row ***************************ID:2Title: Parent-Child photo Title_remark:0Price :22900Old_price:0Title_img1:site_upload/title_img1/20170831/1504180526_253355237.png title_img2:site_upload/title_img2/20170831/1504180526_156898435.png high_light:is_new:0Is_rec:1is_coupon_enabled:1Status:1Is_del:1Addtime:1504180526

\g,sql Select if too long, you can put \g in the back, vertical lines show ~ ~ ~

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.