Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters for Order by in SQL?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00131023
Message ID:
00131067
Views:
42
>Ed -
>
>Thanks a lot - this worked (I also found I can use something like "6,5" in N to order by two or more fields). I see you used macro substitution as opposed to the parameterized notation (?somefield) the article indicated could be used. Given that, is there any advantage to using the field number in this kind of situation instead of the field name (or doesn't it make a difference)?
>
>Sylvia

Hi Sylvia,

Just my .02 (US) here. I'd opt for names. I think it's more flexible. Using the field number ties query to the order of the field within the table. If the structure changes, say a new field is inserted, then this would have to change too. Using the name doesn't have this problem.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform