我有两张桌子tbl_expense和tbl_miscellaneous_category. 在tbl_expense我有一些领域。主要id和category.In tbl_miscellaneous_category id and name。这个名字不过是category在tbl_expense table. 我需要这样的o/p:id name
SELECT te.id,te.category
FROM tbl_expense te
inner join tbl_miscellaneous_category tmc
on te.category=tmc.id
WHERE te.id= '1'