注意:存储过程中单引号 ,四个单引号 SET @sql = CONCAT('select user_id into ',m_user_id,' from go_user where mobile =','''',p_user_name,'''',' AND password=','''',p_password,'''');
程序 exec heduling_date_select ' Name like @%a%@ or phone like @%a%@ or Cus_code like @%a%@ or objjc like @%a%@ or Doctor like @%a%@' 存储过程 )) 或者 用两个单引号代替一个 exec heduling_date_select ' Name like ''%a%'' or phone like ''%a%'' or Cus_code like ''%a%'' or