discuz中怎么在2个database读取数据


config_global.php已经写好一个dbname了,我现在要从另一个dbname中调取数据,要怎么selectdb呢?

php discuz

坏掉的FGS 9 years, 6 months ago

暂时目前我只能用新建视图来解决两个database之前互相读取多个tablename了

CREATE VIEW 给想要访问的tablename取的新name
AS SELECT * FROM 想要访问的database . 想要访问的tablename a WHERE a.条件;

身寸亻尔忆莲 answered 9 years, 6 months ago

Your Answer