我可以从存储过程访问远程mysql服务器/db吗?

我可以从存储过程访问远程mysql服务器/db吗?,mysql,database,stored-procedures,database-connection,Mysql,Database,Stored Procedures,Database Connection,对于select和insert访问,是否可以使用sql语句从存储过程连接到mysql服务器的远程实例 理想情况下,它类似于(伪代码): 我想我可以在C/C++中开发一个用户定义的函数,通过ODBC实现。不过,如果可能的话,我更喜欢本地语法。谢谢 是的。使用功能 connect to remotedb@remotehost select field1 from remotedb.table1 where ...

对于select和insert访问,是否可以使用sql语句从存储过程连接到mysql服务器的远程实例

理想情况下,它类似于(伪代码):

我想我可以在C/C++中开发一个用户定义的函数,通过ODBC实现。不过,如果可能的话,我更喜欢本地语法。谢谢

是的。使用功能

connect to remotedb@remotehost
select field1 from remotedb.table1 where ...