Is there any compatibility related to this SQL statement?

Source: Internet
Author: User
Is there any compatibility problem with this SQL statement? $ Query & nbsp ;=& nbsp; & quot; & nbsp; select & nbsp; * & nbsp; from & nbsp; $ member_table & nbsp; me1 & nbsp; left & nbsp; join & nbsp; (is there any compatibility problem with the SQL statement selec?
$ Query = "select * from $ member_table me1 left join (select *, max (lead_date) as maxdate from $ leada_table group by user_id order by lead_date) temp on (me1.user _ id = temp. user_id) where me1.islead = 1 and temp. maxdate <= '$ timestamp '";


Is there any compatibility problem with this SQL statement?
Your 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 *, max (lead_date) as maxdate from haoshutong_leada_cn

Local mysql 4.1.21
MySQL 4.0.23

------ Solution --------------------
Subquery 4.0 is not supported, that is, the select

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.