Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I drop a column from a cursor?
Message
From
08/10/2005 04:36:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/10/2005 04:05:02
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01057403
Message ID:
01057410
Views:
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
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform