请问sqlserver链接服务器调用mysql的存储过程如何写?

「已注销」 2011-07-23 07:27:16
如题所述,近期有业务需要实现 从sqlserver的链接服务器到mysql 执行一个存储过程,请问执行mysql的存储过程该如何写啊?!

还有个问题,比如 sqlserver中通过两个链接表执行UPDATE 可以如下写:


update table_1 set table_1.server_ip=B.server_ip
from table_1 a inner join table_2 b on a.id=b.id


但在MYsql中执行本条语句是通不过的,
提示如下:

[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘from table_1 a inner join table_2 b on a.id=b.id' at line 2


请问下,如何在在mysql中实现多表UPDATE,谢谢各位了!~
...全文
122 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
rucypli 2011-07-23
  • 打赏
  • 举报
回复

update table_1 a ,table_2 b
set table_1.server_ip=B.server_ip
where a.id=b.id



56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧