Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5 & FireBird - Logical Field in FireBird???
Message
From
28/02/2004 15:15:35
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00881775
Message ID:
00881806
Views:
39
This message has been marked as the solution to the initial question of the thread.
I use smallint as well.
You can create a domain that can emulate a logical column.
CREATE DOMAIN LOGICAL AS SMALLINT DEFAULT 0 CHECK (VALUE IN (0,1))
or
CREATE DOMAIN LOGICAL AS CHAR(1) DEFAULT 'F' CHECK (VALUE IN ('T','F'))
If you are using domains for columns definition, you can easily change all columns based on a certain domain in all tables. The good news are that records are not physically changed untill they are "visited"


>Oh I got it SmallInt and a 0 or a 1 does the job in the checkbox. If there are any better alternatives please let me know.
>
>>Hi all
>>
>>How can I represent a logical datatype in FireBird?
>>
>>Being a VFPer this is a major missing link for me.
>>
>>Please advise. And if possible also let me know what control in VFP can handle this alternative data type.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform