CodePudding user response:
SELECT DISTINCT jianli. *,
Jianlitoufang jianliID,
Jianlitoufang. YonghuID
The FROM jianli,
Jianlitoufang
WHERE jianlitoufang. JianlitoufangID='" + num + "'
AND jianli. JianliID=jianlitoufang. JianliID
AND the userName (IN the SELECT userName
The FROM yonghu
WHERE yonghu. YonghuID=jianlitoufang. YonghuID)
SQL is a bit messy, you help you organize,
The two tables of table structure under the cut a figure to see?
CodePudding user response:
Feel jianlitoufang. JianlitoufangID='" + num + "' there is a problemCodePudding user response:
Generally is the issue of Chinese space