是否可以使用 sql 语句从存储过程连接到 mysql 服务器的远程实例,以进行选择和插入访问?
Is it possible to connect to a remote instance of mysql server from a stored procedure using sql statements, for select and insert access?
理想情况下,它应该类似于(伪代码):
Ideally, it would be something like (pseudo-code):
connect to remotedb@remotehost
select field1 from remotedb.table1 where ...
我想我可以在 C/C++ 中开发一个用户定义的函数,它通过 ODBC 来完成.不过,如果可能的话,我更喜欢本机语法.谢谢!
I guess I can develop a user-defined function in C/C++ that does it by ODBC. I'd prefer a native syntax if possible, though. Thanks!
是的.使用联合表功能.
这篇关于我可以从存储过程访问远程 mysql 服务器/数据库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!