如题所述,近期有业务需要实现 从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,谢谢各位了!~
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,谢谢各位了!~
解决方案 »
- mysql query browser如何导入导出数据
- 在windows下如何用一个命令来恢复一个sql 文件
- mysql图形工具中怎样输入BIT类型数据
- ...where time1 >='2006-12-20 00:00:00' and time1 <='2006-12-20 24:00:00'查不到数据的问题?
- Apache2+php5+mysql4.1.9+phpMyAdmin2.6.1 在用phpMyAdmin查看数据库内容时中文出现乱码?请问怎么解决!
- 书上这个例子这个语句为什么老提示错误?
- C++ Builder 6+MYSQL的问题!
- 请问mysql里建表是当数据类型是int时,它的默认length/set是3。这个3是指字节数还是字符数阿?
- 求一sql语句,设置表a.col字段的值,等于 表b.col2 的值,但是是随机的,没有 类似a.id=b.id
- c#操作mysql数据库有现成的方法 或者例子吗?
- 一个复杂的查询,帮帮忙,谢谢各位
- 表联接
update table_1 a ,table_2 b
set table_1.server_ip=B.server_ip
where a.id=b.id