在SAP WebIDE Database Explorer里操作hdi實例

  • 2020 年 2 月 21 日
  • 筆記

在WebIDE里將SAP HANA Database Explorer啟用:

打開database Explorer視圖:

添加一個資料庫:

資料庫實例作為HDI容器被添加:

When the database was created for you in your trial subaccount, it was created as an HANA Deployment Infrastructure (HDI) container, within the context of the hdi-shared plan for the HANA trial service in the SAP Cloud Platform』s Cloud Foundry (CF) environment.

在Database Explorer里,雙擊Table,查看資料庫表:

上圖看到的資料庫表MY_APP_PRODUCTS的結構,和CAP項目里db module里data-model.cds定義的結構一致:

這裡可以給資料庫表裡添加新的記錄:

然後使用OData將剛剛插入的數據取出:

也可以使用SQL語句,批量刪除表裡的數據: