Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PATINDEX() not on VFP tables via ODBC
Message
 
 
À
28/08/2006 15:36:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01149158
Message ID:
01149161
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Try
WHERE  VAL(Number) = 111
>Trying to make this work on VFP tables accessed via odbc:
>
>
>TEXT TO mystring NOSHOW TEXTMERGE
>SELECT name,apt_room,occup_id,number,st_prefix,street,st_type,st_suffix,apt_room FROM occ_main  
WHERE  CAST(LEFT(Number, PATINDEX('%[-, /\@#$%^!&*()+A-Z]%', Number + 'A')-1) AS int) = 111  
AND street = 'GUILFORD COLLEGE' AND st_type = 'RD'
>ENDTEXT
>
>The exact same syntax works in SQL2000/SQL2005 but not when the backend is VFP tables accessed via odbc.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform