大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
可以参考下列语句
创新互联公司于2013年创立,是专业互联网技术服务公司,拥有项目网站制作、网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元珠山做网站,已为上家服务,为珠山各地企业和个人服务,联系电话:028-86922220
select adddate(concat(年月字段,'-',日期字段),interval 1 day) from 表名;
select
table_a.culumn1 as a1,table_a.culumn2 as a2,table_a.culumn3 as a3,
table_b.culumn1 as b1,table_b.culumn2 as b2,table_b.culumn3 as b3
from
(select * from a) as table_a
full join (select * from b) as table_b on table_a.time=table_b.time
你可以直接将这两个查询当做子句分别替换到括号内的内容中,字段根据需要换掉即可。
本回答仅以实现需求为先,若要提高效率需要另找办法了。
SELECT *,CONCAT(a1.Date," ",a1.Time) as w FROM a as a1 , b as b1 where CONCAT(a1.Date," ",a1.Time) CONCAT(b1.Date," ",b1.Time); 这样么 应该可以不用时间戳比较
试试下面这样行不
concat("2015","-","05","-","07"," ","12",":","00",":","00")