Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

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

$
0
0

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 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>