select
ag.name, aa.name, al.object_id, u.name, al.performed_by, al.datetime,
aa1.name, et.name, ald.name, ald.value
from
'db'.'table1' al, 'db'.'table2' ald, 'db'.'table3' ag,
'db'.'table4' aa, 'db'.'table5' aa1, 'db'.'table6' et,
'db'.'table7' u
where
al.id = ald.log_id
and al.datetime > DATE_SUB(sysdate(). INTERVAL 90 DAY)
and al.group_id = ag.id
and ag.name = 'User'
and al.action_id = aa1.id
and al.object_id = u.user_id
and ald.type_id = et.id;
上面的查询在 mysql 中返回空集,但数据存在。如何解决它?
请帮助...在此先感谢...