Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error in 9 that works in 7
Message
From
16/09/2005 14:55:14
 
 
To
16/09/2005 13:09:57
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01050380
Message ID:
01050455
Views:
12
>This line of code works in VFP 7 but causes an error in VFP 9. What's the problem?
>
>select distinct(make) as make from car_type into cursor ccar_type order by make
>
>The error is 1808 - Message= SQL: ORDER BY clause is invalid.
>
>Calvin

This is a bug for me, because the order is not ambiguous.

These works.
select distinct(make) as make from car_type into cursor ccar_type order by 1

select distinct(make) as make1 from car_type into cursor ccar_type order by make1

select distinct make as make from car_type into cursor ccar_type order by make

select distinct make from car_type into cursor ccar_type order by make
Previous
Reply
Map
View

Click here to load this message in the networking platform