0
我想在我SQL創建以下存儲過程:MySQL中創建新的存儲過程
create procedure UpdateLineItemGAPSTATOTH(IN TIP_LI_ID INT)
BEGIN
Update tip_entry_line_item set tip_entry_line_item.ACCT_NAME = app_gl_bridge.gl_description
from tip_entry_line_item LEFT JOIN
select app_gl_bridge.gl_code,app_gl_bridge.gl_description
FROM app_gl_bridge GROUP BY gl_code,gl_description ON tip_entry_line_item.GL_ACCT_CODE = app_gl_bridge.gl_code
WHERE tip_entry_line_item.TIP_LI_ID = TIP_LI_ID;
END
但是
,它拋出錯誤:
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 tip_entry_line_item LEFT JOIN select app_gl_bridge.gl_code,app_gl_bridge.' at line 4