SELECT A0101,A0104,A0107,TIMESTAMPDIFF(YEAR,a01.A0107,CURDATE())AS \'age\'FROM a01WHERE TIMESTAMPDIFF(YEAR,a01.A0107,CURDATE())>\'38\'
A0101,A0104,A0107 字段
a01 表名
a01.A0107 出生日期字段
SELECT A0101,A0104,A0107,TIMESTAMPDIFF(YEAR,a01.A0107,CURDATE())AS \'age\'FROM a01WHERE TIMESTAMPDIFF(YEAR,a01.A0107,CURDATE())>\'38\'
A0101,A0104,A0107 字段
a01 表名
a01.A0107 出生日期字段