DELIMITER $$
CREATE PROCEDURE selectContacts
BEGIN
SELECT master_id, CONCAT_WS(" ",l_name, f_name) AS display_name
FROM master_name
ORDER BY l_name, f_name;
END
错误:
#1064 - Something is wrong in your syntax obok 'BEGIN
SELECT master_id, CONCAT_WS(" ",l_name, f_name) AS display_name
FROM' at line 3
Unrecognized data type. (near " " at position 75)
Unrecognized data type. (near ")" at position 90)
无法识别的数据类型位于concat_ws
的括号中。我不知道它在2个月前工作有什么问题。
答案 0 :(得分:0)
创建语法不太正确可能只是一个错字。
CREATE PROCEDURE selectContacts()