1.使用\G按行垂直显示结果
如果一行很长,需要这行显示的话,看起结果来就非常的难受。

在SQL语句或者命令后使用\G而不是分号结尾,可以将每一行的值垂直输出。

mysql> select * from tf_product\G;

\G,sql中select 如果太长,可以在后面放\G,竖行显示~~~~
*************************** 1. row ***************************
               id: 1
            title: 3434
     title_remark: remark
            price: 9600
        old_price: 0
       title_img1: site_upload/title_img1/20170831/1504178909_233791261.png
       title_img2: site_upload/title_img2/20170831/1504178910_418081069.png
       high_light: 危秋洁搬到札幌民宿Ocho居住%
第二天去了美瑛%
在薰衣草前拍照并上传到微博
           is_new: 0
           is_rec: 0
is_coupon_enabled: 1
           status: 1
           is_del: 0
          addtime: 1504178909
*************************** 2. row ***************************
               id: 2
            title: 亲子照片
     title_remark: 0
            price: 22900
        old_price: 0
       title_img1: site_upload/title_img1/20170831/1504180526_253355237.png
       title_img2: site_upload/title_img2/20170831/1504180526_156898435.png
       high_light: 
           is_new: 0
           is_rec: 1
is_coupon_enabled: 1
           status: 1
           is_del: 1
          addtime: 1504180526
\G,sql中select 如果太长,可以在后面放\G,竖行显示~~~~

 

相信坚持的力量,日复一日的力量!
 

1.使用\G按行垂直显示结果
如果一行很长,需要这行显示的话,看起结果来就非常的难受。

在SQL语句或者命令后使用\G而不是分号结尾,可以将每一行的值垂直输出。

mysql> select * from tf_product\G;

\G,sql中select 如果太长,可以在后面放\G,竖行显示~~~~
*************************** 1. row ***************************
               id: 1
            title: 3434
     title_remark: remark
            price: 9600
        old_price: 0
       title_img1: site_upload/title_img1/20170831/1504178909_233791261.png
       title_img2: site_upload/title_img2/20170831/1504178910_418081069.png
       high_light: 危秋洁搬到札幌民宿Ocho居住%
第二天去了美瑛%
在薰衣草前拍照并上传到微博
           is_new: 0
           is_rec: 0
is_coupon_enabled: 1
           status: 1
           is_del: 0
          addtime: 1504178909
*************************** 2. row ***************************
               id: 2
            title: 亲子照片
     title_remark: 0
            price: 22900
        old_price: 0
       title_img1: site_upload/title_img1/20170831/1504180526_253355237.png
       title_img2: site_upload/title_img2/20170831/1504180526_156898435.png
       high_light: 
           is_new: 0
           is_rec: 1
is_coupon_enabled: 1
           status: 1
           is_del: 1
          addtime: 1504180526
\G,sql中select 如果太长,可以在后面放\G,竖行显示~~~~

 

相关文章:

  • 2021-07-26
  • 2022-12-23
  • 2021-11-25
  • 2021-12-30
  • 2021-07-01
  • 2022-03-10
猜你喜欢
  • 2021-05-15
  • 2022-02-15
  • 2022-12-23
  • 2021-12-08
  • 2021-06-25
  • 2021-05-14
相关资源
相似解决方案