使用 concat(p_p1,','p_1num) 可以连接

解决方案 »

  1.   


    #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 'p_1num) 
    concat(p_2,','p_2num) 
      

  2.   

    使用 concat(p_p1,',',p_1num) 可以连接 不小心少了个逗号 !
      

  3.   

    直接连接不行吗 比如 SELECT (A.ID + ',' + A.NAME) AS AAA