TMyQuery problems with IN OUT parameters
Posted: Tue 15 Sep 2020 08:33
In the past I worked with the ODAC (oracle) components and we used the Query component (I don't remember the exact name). And we had this:
Table CUSTOMER
ID AUTOINCREMENT
NAME VARCHAR(100)
SQL
SQLInsert
SQLUpdate
SQLDelete
How would you do it in MySQL/MariaDB using packages?
the ReturnParams property is true in TMyQuery
In InsertMode I try to use
call CUSTOMERS.Customer_Mng(:Customer_Id, :Customer_Name, 'I') but doesn`t work.
Thanks
Table CUSTOMER
ID AUTOINCREMENT
NAME VARCHAR(100)
SQL
Code: Select all
select * from customer
Code: Select all
BEGIN
CUSTOMERS.Customer_Mng
(
:Customer_Id, --p_Id IN OUT PARAMETER
:Customer_Name,
'I' -- p_TipAcc (I: Insert; U: Update; D: Delete)
);
END;
Code: Select all
BEGIN
CUSTOMERS.Customer_Mng
(
:Customer_Id, --p_Id IN OUT PARAMETER
:Customer_Name,
'U' -- p_TipAcc (I: Insert; U: Update; D: Delete)
);
END;
Code: Select all
BEGIN
CUSTOMERS.Customer_Mng
(
:Customer_Id, --p_Id IN OUT PARAMETER
:Customer_Name,
'D' -- p_TipAcc (I: Insert; U: Update; D: Delete)
);
END;
the ReturnParams property is true in TMyQuery
In InsertMode I try to use
call CUSTOMERS.Customer_Mng(:Customer_Id, :Customer_Name, 'I') but doesn`t work.
Thanks