onclick copy, ondbclick paste LO_Base

Firstly i.m absolute 0 in Macros. As suggested in LO documentation, best is to start with ready solutions.
This is only about LO Base.
So wish to ask is it possible to get macro witch do like this:
on mouse click its copy row in one table and then on mouse double click its paste that row in other table/query?

I seen it long time ago in MS Access, but is it possible in LO?

Thanks!

@normanos,

In future along with OS used (should be more specific), please include specific LO version and with Base, the database used and related info (connector, version) if applicable. This most often comes into play when answering questions.

Thanks, buts NOT that, what im looking.
Looking for macro where can copy and paste with mouce click and double click.
How to use mysql i know, but i dont know how to make macro for mouse click and double click.
Sorry Ratslinger, but You didnt read my post properly.

Linux Debian 9 LO Version: 5.2.7.2
and using mysql db, connected directly.

Please do not post additional information in an answer. Answers are to respond to original question. Either edit original question with the information or use add a comment.

Please delete the answer & re-post correctly.

@normanos,

Don’t believe you read either my answer correctly or my comment above. Please delete & re-post your answer as a comment or edit original question and add information there noted as edited.

My first sentence of the answer is what you want and actually answers your question. Yes, did read your question correctly. It is a macro which needs to be specifically written to your needs. There is no universal macro to do this. Since you do not provide specifics or even a sample to work with the answer also provided the ‘practical’ alternative.

Hello,

Using a macro in this situation would need to be specifically written for your situation. The practical solution is simply a SQL statement. This requires an Insert statement so cannot be done in Query section but rather from menu Tools->SQL....

The actual statement depends on the from and to fields and db being used. For most situations here is the format:

INSERT INTO "Your Receiving Table Name"  (List of fields to be inserted)  SELECT  `List of fields selected for insertion` FROM "Table selected from"  WHERE "Field name for selection" = `Value to be selected`

Because there is no provided information, consider that you must insure a unique key must be maintained. This may be handled by an auto increment field or it can be a fixed value in the select statement.

For more information on the Insert statement please refer to the documentation of the database you are using.

NOTE: You do not “paste” records into a query!

Have tested with MySQL JDBC connection. Field & table names surrounded with back ticks.