Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop column??
Message
De
16/05/2012 02:25:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01543651
Message ID:
01543656
Vues:
67
This message has been marked as the solution to the initial question of the thread.
>Hi
>I am trying to delete a column - the 'drop' command does not seem to work
>does anyone know the proper sytax?
>
>Alter Table C:\mytable.dbf drop Column 'notneeded'
>
You don't need quotes around the column name:
CREATE TABLE dropcoltest ( Col1 C( 1 ), Col2 C( 1 ) )
CLOSE DATABASES all
ALTER table dropcoltest drop COLUMN col2
MODIFY STRUCTURE
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform