Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Duplicates
Message
 
 
À
04/05/2010 17:09:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01462570
Message ID:
01463121
Vues:
27
>>>>If you want to add this to the select, then
>>>>
>>>>select Name, cast(0 as I) as IDField from myTable group by Name having count(*) > 1 into cursor csrDups readwrite
>>>>
>>>>replace all IDField with recno() in csrDups
>>>
>>>
>>>im Tryin that (the 1st line) but im not too sure the query is liking that cast
>>
>>Do you get an error?
>
>yea i did synax error nothing two big
>
>t Select fname,Cast(0 as 1) as clientid from otest;
>group by fname having count (*)>1;
>into cursor csrdups readwrite
>
:))

1 is not 1. It is supposed to be I or may be you can spell it out - Integer.

E.g.

select fName, cast(0 as Integer) as ClientID from oTest group by fName having count(*) > 1 ....
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform