我想将我的SQL查询与UNIONALL和golanghttp://golang.org/pkg/text/template/连接起来例如,我有:varslice1=[]string{"2014-01-01","2014-01-02","2014-01-03"}varslice2=[]string{"20140101","20140102","20140103"}并查询:select{{.date}}asdate,itemid,pricefromorderhistory_t{{datetag}}并使用模板创建如下查询:select'2014-01-01'asdate,itemid,pri
我想将我的SQL查询与UNIONALL和golanghttp://golang.org/pkg/text/template/连接起来例如,我有:varslice1=[]string{"2014-01-01","2014-01-02","2014-01-03"}varslice2=[]string{"20140101","20140102","20140103"}并查询:select{{.date}}asdate,itemid,pricefromorderhistory_t{{datetag}}并使用模板创建如下查询:select'2014-01-01'asdate,itemid,pri