2017-05-26 --SUBSTR(addtime, 1, 10) --substr(string string,num start,num length); --string为字符串 --start为起始位置 --length为长度 SELECT d.uid, SUBSTR(u.addtime, , ) as 注册时间, d.cid as cid FROM user_extra_device d, user u where d.uid= u.id ::" , ) --从左边开始截取3个字符…