V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
esolve
V2EX  ›  问与答

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

  •  
  •   esolve · 2017-05-05 18:00:53 +08:00 · 1275 次点击
    这是一个创建于 2556 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    3 条回复    2017-05-05 19:14:45 +08:00
    tianshuang
        1
    tianshuang  
       2017-05-05 18:15:20 +08:00
    写个程序遍历一下,可以参考下面链接中的 fillTableListIfEmpty 方法。
    https://github.com/tianshuang/mysql_table_toJavaBean/blob/master/src/main/java/me/tianshuang/GenerateJavaCodeFromMysql.java
    lynnworld
        2
    lynnworld  
       2017-05-05 18:16:52 +08:00
    shema 库
    aristotll
        3
    aristotll  
       2017-05-05 19:14:45 +08:00
    ` information_schema.columns` 这张表
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2399 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:59 · PVG 19:59 · LAX 04:59 · JFK 07:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.