TIMESTAMPDIFF(DAY,joinDate,NOW())【搬代码】

TIMESTAMPDIFF(DAY,joinDate,NOW())

入网时间距今有多少天

SELECT TIMESTAMPDIFF(DAY,joinDate,NOW()) AS 时间差,mercNm  FROM tablea bm WHERE  mercNm IN('xxx');

1
TIMESTAMPDIFF(DAY,joinDate,NOW())【搬代码】_第1张图片

你可能感兴趣的:(mysql,sql)