본문 바로가기

안녕하세요!

SAP/CAP

[ CAP ] SQL에 CDS Mapping하기

CDS definitions


 


  
namespace foo.bar;
context Car {
entity Wheel { diameter : Decimal }
}

 

CDS의 경우, 위와같이 namespace로 경로를 지정하고
context 내에 Wheel이라는개체의 속성을 선언할 수 있다.   

SQL DDL(Data Definition Language)


 


  
CREATE TABLE foo_bar_Car_Whell (
diameter Decimal
)

 

반면, SQL에서는 Unscored, 즉 bottom bar로 간편하게 정의내릴 수 있다.

 

'SAP > CAP' 카테고리의 다른 글