Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple sql statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00363530
Message ID:
00363533
Vues:
19
>>Hi:
>>
>>I'm trying to run a query where I list all the records that have 2 as the second character in the field, i.e. 1234, 0234, 4290
>>Simple enough, this query only gives me records with the value of 2. The intertitle field is character 4.
>>
>>
>>select * from act_plan where val(left(intertitle,2)) = 2
>>
>>Thanks.
>>
>>M.
>
Whoops, typo. Make that
>
SELECT * FROM ACT_PLANT WHERE SUBSTR(INTERTITLE, 2, 1) = '2'
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform