::NoName Magazine 无名杂志 » Project Parasy » 唉 又遇到一个问题


2008-5-4 12:15 kinway
唉 又遇到一个问题

我的Mysql是4.x 版本的

Time: 2008-5-4 12:12pm
Script: /bbs/parasy_geo.php

SQL: SELECT t.subject, t.authorid,t.author,t.tid, t.lastpost, mf.uid, mf.avatar FROM [Table]members m, [Table]threads t LEFT JOIN [Table]forums f ON f.fid=t.fid LEFT JOIN [Table]memberfields mf ON mf.uid=t.authorid WHERE m.uid = t.authorid AND m.uid IN (SELECT uid FROM [Table]members WHERE usr_geo IN ('sputnik1')) ORDER BY t.lastpost DESC LIMIT 25
Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT uid FROM [Table]members WHERE usr_geo IN ('sputnik1')) ORDE
Errno.: 1064

2008-5-4 12:40 Sai
貌似低版本不支持这样的查询?4.1以上还是?

2008-5-4 22:33 kinway
(ll09) 4.0.27

页: [1]
查看完整版本: 唉 又遇到一个问题


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.