问题描述
我希望在单列中插入两行以上的qry插入更多单引号
我尝试过:
插入TEMP_TABLE(userid,chartid,id,qry,y1,y2)值('1','chart0','chart0','选择ef_week为文本,Sum (实际生产)作为实际生产,平均(生产效率)作为生产效率从生产效率实际生产!= 0和日期(报告日期)在'2016-01-01'和'2016-08-29'组之间由ef_week订购ef_week','实际生产','Productionefficiency')
i want insert more than two line qry insert in single column with more single quotes
What I have tried:
Insert into TEMP_TABLE(userid,chartid,id,qry,y1,y2)Values('1','chart0','chart0',' select ef_week as text,Sum(actualproduction) as actualproduction , avg (Productionefficiency) as productionefficiency from EFFICIENCY where actualproduction !=0 and date(ReportDate) between '2016-01-01'and '2016-08-29' group by ef_week order by ef_week ','actualproduction','Productionefficiency')
推荐答案
这篇关于如何使用更多单引号在mysql中插入qry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!