I am trying to do a INSERT OR UPDATE SQL query, but the query always inserts new rows to table. Is it how I defined the table or am I mising something in the query?
table defines as,
Class AH.AHCOMMON.Tables.HospDepartmentData Extends %Persistent [ Language = objectscript ]
{
Property Tablespace As %Library.String(MAXLEN = 50) [ SqlColumnNumber = 2 ];
Property DepartmentId As %Library.String(MAXLEN = 50) [ SqlColumnNumber = 3 ];
Property TimezoneName As %Library.String(MAXLEN = 100) [ SqlColumnNumber = 4 ];
Property PatientDepartmentName As %Library.String(MAXLEN = 100) [ SqlColumnNumber = 5 ];
Prope
.png)
.png)

.png)
.png)

.png)

