Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
READWRITE cursor and ALTER TABLE
Message
De
28/03/2006 13:08:07
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01108442
Message ID:
01108449
Vues:
12
>I have two cursors that are both READWRITE. However, one will allow an ALTER TABLE and the other will not. In the Data Session I can see where the first cursor will let me click on Properties and the second will not. But why??
>
>This Works
>
>SELECT obligor, obligation FROM obligat_cur ;
> ORDER BY obligor, obligation ;
> INTO CURSOR obligat READWRITE ;
> group by obligor, obligation
>
>ALTER table obligat add COLUMN unit c(5)
>
>
>This gets an Invalid Operation for the Cursor on the ALTER.
>
>SELECT obligor as obligor, a.site_id as site_id, b.* ;
> FROM obligor1 as a, cadirectry as b ;
> INTO CURSOR obligor READWRITE
>
>ALTER table obligor add COLUMN name c(10)

Part of the problem may be that the second cursor is pulled from 2 tables but there is no join condition.

Regards,
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform