Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Best practice for Yes / No column

fatehcis-JavaNetApr 23 2013 — edited Apr 23 2013
Hello,

When the column stores only Yes / No Values. What is the right definition for that column. Is the following right pertaining IS_PAID column :
CREATE TABLE ABSENCE
  (
    ID         NUMBER (3) NOT NULL ,
    USER_ID    NUMBER (3) NOT NULL ,
    IS_PAID    VARCHAR2 (1 BYTE) DEFAULT 'N' NOT NULL ,
   .......
.....
  ) ;
 
ALTER TABLE ABSENCE ADD CHECK
(
  IS_PAID IN ('N', 'Y')
)
;
Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2013
Added on Apr 23 2013
8 comments
4,080 views