Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆数据库,结构都一样。我需要的是每个数据库的表“config”、“serial”列和数据库名称的值。
有没有办法自动遍历数据库并获取数据库名称及其 config.serial 的值?
干杯,格温
SELECT <db>.<table>.config,<db>.<table>.serial,<otherdb>.<othertable>.config,<otherdb>.<othertable>.serial FROM <db>.<table>,<otherdb>.<othertable> WHERE ...