0
我想从mysql中的数据库存储过程之一中的多个数据库表中获取行。Mysql存储过程 - 从多个数据库表中获取行
这可能吗?
请给我举个例子吧。
CREATE DEFINER=`root`@`localhost` PROCEDURE `user_procedure`(IN uid_user int)
BEGIN
select ucgm_id from `conne`.conn_group_membership where uid=uid_user;
END
是的,使用即连接或子选择。 – VMai
我试图从其他数据库表中获取单个行,但是它在mysql工作台中显示错误。 –
我用程序更新了问题。 –