Quantcast
Viewing all articles
Browse latest Browse all 3131

How to limit a integer datatype to 0 and 1? (SAP HANA CDS Entities)

Hello community,

 

iam working on a university project.

 

I have generate different entities in cds.

One entity contains a attribute named "is_component". For that i want use a boolean datatyp. But as i read there is no boolean supported by sap hana.

 

Alternatively I would use Integer as datatype. Can i limit it? So that only 0 and 1 is allowed?

 

Thank you in advance!

 

best regards

Timo


Viewing all articles
Browse latest Browse all 3131

Trending Articles