Stored procedure for insert, update or delete

QuestionsStored procedure for insert, update or delete
C3media asked 7 years ago

Hello,

It's possible this?

$h->select_command = "CALL insert_clients";

As you know, CRUD operation would be fastest because will be executed by database management system.

Thank you!

1 Answers
Abu Ghufran answered 7 years ago

For INSERT, UPDATE, DELETE you can call stored procedures using on_insert, on_update and on_delete event handlers by writing your custom php code in these functions.
You can stop default grid behavior of insert,update,delete as well.

Refer docs: http://www.phpgrid.org/docs/#Grid_Events

Your Answer

4 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?