Notifications
Clear all

Cách viết khi sử dụng tham số chạy trong Query Manager và SAP HANA Studio

1 Posts
1 Users
0 Reactions
13 Views
admin
Posts: 478
Admin
Topic starter
(@admin)
Noble Member
Joined: 3 years ago
  • Câu query sử dụng trong Query Manager - SAP B1 version HANA

  • Câu query sử dụng trong HANA Studio

Chỉ cần đặt câu query trên vào giữa "Do Begin ... End;"

Do Begin
	/* SELECT FROM ORDR T0 */
	Declare FromDate timestamp;
	Declare ToDate timestamp;
	FromDate := /* T0."DocDate" */ '2021-08-01';
	
	SELECT ADD_MONTHS (FromDate, 1) INTO ToDate FROM DUMMY;
	
	SELECT T0."DocNum", T0."DocDate" FROM ORDR T0 WHERE T0."DocDate" >= FromDate and "DocDate" <= ToDate;
End;

Reply
Share:
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security