Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I drop a column from a cursor?
Message
De
08/10/2005 05:02:06
 
 
À
08/10/2005 04:36:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
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
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01057403
Message ID:
01057413
Vues:
9

>Hi Everybody,
> Learnt from error message that command Alter Table mycursorname Drop a_column_name is invaild to a cursor,but i sometimes do need so to do.

Aaron,
You can use 'alter table' with cursors.
Steven,
To be able to use 'alter table' you need a readwrite cursor, cursor should not be an SPT cursor and should not have any long field names in it. ie:

select * from customer into cursor myCursor readwrite
alter table myCursor ;
drop column contact ;
drop column title ;
drop column address
browse

Hi Cetin,
Unfortunately, what i mentioned happenedly is for SPT cursor.the fields of cursor are dynamically generated at side of SQL Server,in which there is a redundant column as relationship field,couldn't be removed at side of SQL.
Thus i want to remove it at VFP client.Any further ideas on conveting a SPT cursor into a general cursor? Certainly, it can be clone as real dbf then generate another cursor,but i don't like this way.:)
Steven
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform