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.
如果我有数据库D1和数据库D2,以及数据库下的表和数据库T1下的D1表,是否可以在 MySQL中创建数据库下的视图。如果是这样,你能告诉我语法吗?T2D2T1D2
D1
D2
T1
T2
两个数据库都在同一台机器上。
CREATE VIEW `D2`.`example` AS SELECT * FROM `D1`.`T1`;