select t.*, t.rowid,p.account_title_name from account_title t,account_title p where t.parent_account_title =p.account_title_id
其实写法类似
sql :select * from table名字hql : select * from 是类名,不是表名