V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
qwerasdf123

一个 mysql 比较小众轻量的 utools 插件

  •  2
     
  •   qwerasdf123 · Aug 17, 2023 · 2176 views
    This topic created in 984 days ago, the information mentioned may be changed or developed.

    适用于经常查数据的场景

    在查询数据的时候往往需要将某张表的 id 列作为另一张表的 WHERE IN 条件(当然连表或子查询这两种也可以,这里只指出特定的场景), 比如从 navicat 中复制某一列 id , 这时候需要将这一列转换成逗号分割的行,在没写这个工具之前我也是 sublime 中 全选 -> shift + cmd + L 来完成这个转换的, 这个工具便能很好的完成这个任务

    utools 应用市场搜 mysql 即可找到 全称:mysql 条件列转行

    7 replies    2023-08-18 14:19:32 +08:00
    Mistwave
        1
    Mistwave  
       Aug 17, 2023 via iPhone
    试试 group_concat 呢?
    qwerasdf123
        2
    qwerasdf123  
    OP
       Aug 17, 2023
    @Mistwave 理论上是可以的 但是这个小工具就是为了从 navicat 复制出来方便
    wei2629
        3
    wei2629  
       Aug 17, 2023
    正好需要, 之前都是 自己写正则转
    qwerasdf123
        4
    qwerasdf123  
    OP
       Aug 17, 2023
    @wei2629 nice
    akaayy
        5
    akaayy  
       Aug 17, 2023 via Android   ❤️ 1
    @Mistwav
    @Mistwave needed 得得得得得
    chengxiao
        6
    chengxiao  
       Aug 17, 2023   ❤️ 1
    可以可以 很实用 我也是平时在 vscode 里操作一次 正好最近把全平台的启动器都换成了 utools
    qwerasdf123
        7
    qwerasdf123  
    OP
       Aug 18, 2023
    @akaayy @chengxiao
    感谢支持!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 01:43 · PVG 09:43 · LAX 18:43 · JFK 21:43
    ♥ Do have faith in what you're doing.