MySQL创建存储过程报错
,过程如下:CREATEPROCEDURENewProc(ININ_IDVARCHAR,OUTOUT_NAMEVARCHAR)BEGINSELECTC_NAMEINTOO...
,过程如下:
CREATE PROCEDURE NewProc (
IN IN_ID VARCHAR,
OUT OUT_NAME VARCHAR
)
BEGIN
SELECT
C_NAME INTO OUT_NAME ROM T_ITCAST_ORGAN_USER
WHERE
c_id = IN_ID;
END;
报错如下:
[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 ' OUT OUT_NAME varchar)
BEGIN
SELECT C_NAME INTO OUT_NAME
ROM T_ITC' at line 1
请问这是什么原因啊?? 展开
CREATE PROCEDURE NewProc (
IN IN_ID VARCHAR,
OUT OUT_NAME VARCHAR
)
BEGIN
SELECT
C_NAME INTO OUT_NAME ROM T_ITCAST_ORGAN_USER
WHERE
c_id = IN_ID;
END;
报错如下:
[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 ' OUT OUT_NAME varchar)
BEGIN
SELECT C_NAME INTO OUT_NAME
ROM T_ITC' at line 1
请问这是什么原因啊?? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询