esolve
V2EX  ›  问与答

知道一个表名的子字符串,如何在 mysql 里找到这个表?

  •  
  •   esolve · May 5, 2017 · 1791 views
    This topic created in 3321 days ago, the information mentioned may be changed or developed.

    在一台服务器上,mysql 里有十多个数据库 知道一个表的表名有一个“ note ”的子字符串 如何找到这个表?

    3 replies    2017-05-05 19:14:45 +08:00
    argos
        1
    argos  
       May 5, 2017
    写个程序遍历一下,可以参考下面链接中的 fillTableListIfEmpty 方法。
    https://github.com/tianshuang/mysql_table_toJavaBean/blob/master/src/main/java/me/tianshuang/GenerateJavaCodeFromMysql.java
    lynnworld
        2
    lynnworld  
       May 5, 2017
    shema 库
    aristotll
        3
    aristotll  
       May 5, 2017
    ` information_schema.columns` 这张表
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3233 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 12:18 · PVG 20:18 · LAX 05:18 · JFK 08:18
    ♥ Do have faith in what you're doing.