Solved

copy record in sql

  • 29 July 2021
  • 2 replies
  • 39 views

Userlevel 1
Badge +2

Does thinkwise have a sql function that I can use to copy a record? In the GUI there is a copy button. Can I use the functionality behind that button to use it in my sql code?

Thanks.

icon

Best answer by Mark Jongeling 29 July 2021, 10:12

View original

2 replies

Userlevel 7
Badge +23

Hi,

The GUI button does not run a SQL procedure to copy row data but instead it copies data from the selected row and uses that data to pre-fill the fields for your new row.

Having a copy button written in SQL is of course possible but there's no code that works in all cases.  Best way to use data of a specific row in SQL is either by filling declared variables with it to use within your code or by joining the row to your queries.

Userlevel 1
Badge +2

Oke, thank you for your answer

Reply