SELECT cafebarname, Province + City AS area, baojibegindate + '至 '+ baojienddate AS baojidate, createDate
FROM CafeMember
baojibegindate和baojienddate 是datetime类型
怎么做才能正确呢?
------解决方案--------------------
convert(char(19),baojibegindate,120)+ '至 '+convert(char(19),baojienddate,120)
------解决方案--------------------
SELECT cafebarname, Province + City AS area, convert(char(19),baojibegindate,120)+ '至 '+convert(char(19),baojienddate,120) AS baojidate, createDate
FROM CafeMember