Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sqlconnect question
Message
De
24/09/2001 16:11:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00560172
Message ID:
00560195
Vues:
22
>>>Is there some reason why the below statement does not work if I include svar?
>>>
>>>svar='RM 113'
>>>SQLExec(lnHandle,"SELECT * FROM amcs_inventory_data where;
>>>svar $ location","Result1")
>>>sele result1
>>>brow
>>
>>Try:
>>
>>
>>SQLExec(lnHandle,"SELECT * FROM amcs_inventory_data where " +;
>> "'" + svar "'$ location","Result1")
>>
>>Although I don't think the $ operator would be supported through the ODBC driver.
>
>I tried this and it comes back with "Function name is missing ). "

It is because the $ operator is a VFP operator. Is this SQL Server data? How about:
lcSql = "select * from buyers where charindex('" + ;
      svar + "',location) > 0"
SQLExec(lnHandle,lcSql,"Result1")
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform