This topic is locked

Import feature

11/18/2019 1:53:47 PM
PHPRunner General questions
Max author

Is it possible to change the type of query used by the file import feature for a specific table? I suppose INSERT is used but I would instead use REPLACE ...
Thank you in advance.

Sergey Kornilov admin 11/18/2019

I'm not sure what REPLACE is but you can override the default import behavior using BeforeInsert event:

https://xlinesoft.com/phprunner/docs/before_insert_record.htm

Max author 11/19/2019



I'm not sure what REPLACE is but you can override the default import behavior using BeforeInsert event:

https://xlinesoft.com/phprunner/docs/before_insert_record.htm


You're right, probably my question did not provide the necessary information.
I'm using MySQL server as backend database, and instead of INSERT INTO tblname ( ... ) I need REPLACE INTO tblname (...)
Anyway, it's ok the same.
Thank you again.

Sergey Kornilov admin 11/19/2019

Make sense and this event will help.