Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT return only one row
Message
 
 
To
02/11/2002 15:31:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00718194
Message ID:
00718195
Views:
16
This message has been marked as the solution to the initial question of the thread.
Your query will return only records that have text "ANTONIO" at the very end of the c_descri field. The record that have spaces after "ANTONIO" will not be included. Depending on your requirements you can change it to
lcChvPro="%"+"ANTONIO" + "%"
* OR
... TRIM(c_descri) LIKE ...
>Hi all,
>
>Why this only return one row, when i have more than 30...
>
>[Form]
>lcTable='CLIENTES'
>lcChvPro="%"+"ANTONIO"
>
>[COM]
>.Open("SELECT * FROM &lcTable WHERE c_descri LIKE '"+lcChvPro+"' ", This.lcConnection)
>
>
>Thank's
>
>João Batista
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform