多表联合查询
我想调出job表的所有文章,并依据 job表里的username 和company username 关联,调出相应的company 表里的thumb(公司形象图)
调出内容为:招聘 表 标题 路径,相应发布该招聘的公司 名称 和该公司的形象图
我用下面的语句,总是提示 MySQL Error:Table 'jianzhi.destoon' doesn't exist MySQL Errno:0
不知道我的标签语句哪儿出错了,初学者,求解!!!
0&template=list-com")}--> 加 debug=1打印出来sql 语句看看
枪口的雨 发表于 2016-8-1 17:41
加 debug=1打印出来sql 语句看看
table=destoon_job m,destoon_company c&prefix=&condition=m.username=c.username and m.level>0&template=table-job2&debug=1
SELECT * FROM destoon WHERE m.username=c.username and m.level>0 LIMIT 0,10
解决方法
修改include/safe.func.php文件
将function strip_sql函数中的
|{$DT_PRE}去掉就可以解决 你这个提示问题 至于能不能调用出来 还需要你调试 多表联合查询时,有什么错误提示吗
龙在天涯 发表于 2016-8-2 08:37
多表联合查询时,有什么错误提示吗
错误提示:
MySQL Query:SELECT * FROM destoon WHERE m.username=c.username and m.level>0 LIMIT 0,10
MySQL Error:Table 'jianzhi.destoon' doesn't exist MySQL Errno:0
Message:MySQL Query Error
页:
[1]