Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verify if a field already exists in a table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01238247
Message ID:
01406930
Vues:
50
>>>>>>>I've looked at Help on ALTER TABLE and I don't see if it requires exclusive access or not.
>>>>>>
>>>>>>Yes it is
>>>>>>
>>>>>
>>>>>Is there any other way to change the structure of the existing table?
>>>>
>>>>Nope, you are changing the table structure :-) not a value of the field.
>>>
>>>Yes, thanks - for a minute I thought there may be way around it. BTW, how can we set (check) for the default value of the field?
>>
>>
>>ALTER TABLE ALTER COLUMN TheColum [type and size goes here] DEFAULT .....
>>
>>
>>Check:
>>
>>AFIELDS(laFields,alias)
>>lnField = ASCAN(laFields,[FieldName], 1,-1, 1, 1+6)
>>? laFields[lnField, 9]
>>
>
>I thought you can get/set it with CursorGetProp

That function is for CURSOR not for the field :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform