Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
V6s5 & FireBird - Logical Field in FireBird???
Message
De
01/03/2004 01:49:59
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00881775
Message ID:
00881962
Vues:
49
>>You can create a domain that can emulate a logical column.
>>
>>CREATE DOMAIN LOGICAL AS SMALLINT DEFAULT 0 CHECK (VALUE IN (0,1))
>>
>
>This means that we can create custom datatypes or atleast custom datatype names?
>

Hi
Yes, you can. If you have columns with similar characteristics or check constraints, you can create a domain and use it for columns definitions in all tables where you need it.

>>If you are using domains for columns definition, you can easily change all columns based on a certain domain in all tables.
>
>I just go in for the defaults.
>
>>The good news are that records are not physically changed untill they are "visited"
>
>In what manner

Suppose that you have a domain defined as NUMERIC(12,3) used in many tables, some of them with millions of records. If you change the domain to NUMERIC(15,3), this doesn't mean a long running task that implies changes in all tables. Instead, the engine is smart enough to do conversions only when a record with changed column definition is visited/changed in a read/write operation.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform