在navicat上sql正常运行,在设计器里的查看执行sql在navicat上也是正常运行,但是在设计器预览数据就报错了,这是为什么呢?SET @sql = NULL;SELECT GROUP_CONCAT(DISTINCT CONCAT( 'SUM(CASE WHEN PK_ACCM = ''', PK_ACCM, ''' THEN TB_MEATYPE_0000000FS/10000 END) AS `', PK_ACCM, '`' ) ) INTO @sqlFROM fi_erp_dw_cwlrbWHERE PK_MEASURE IN ('0001A11000000000243B','0001A11000000000243C','0001A11000000000243E','0001A11000000000243D')AND PK_YM <= '2023-06' AND PK_ACCP = LEFT('2023-06',4);SET @sql = CONCAT('SELECT PK_PROJECT,PK_MEASURE, PK_ACCP, ', @sql, ' FROM fi_erp_dw_cwlrb WHERE PK_MEASURE IN (''0001A11000000000243B'',''0001A11000000000243C'',''0001A11000000000243E'',''0001A11000000000243D'') AND PK_YM <= ''${pym}'' AND PK_ACCP = LEFT(''${pym}'',4) GROUP BY PK_PROJECT,PK_MEASURE, PK_ACCP');PREPARE stmt FROM @sql;EXECUTE stmt;DEALLOCATE PREPARE stmt;