0
I’m developing a payment system for my company, where there are two different types of accounts. Exporádicas (Ex. IPVA, Pen-Drive, etc.) and Fixed (e.g. Electricity Bill, Water, Telephone, Internet, etc.);
I have a table where only accounts with your type = 'fixed are displayed'.
What I would like to accomplish, which I could not and did not find at all, was...
a button that would take the Data being displayed in this table and duplicate it in the BD with Different ID and Value.
The idea is to remove the user’s work to relaunch accounts that will have exactly equal data, maybe differentiating maturity and value... and when clicking the button all values of the fixed type be duplicated...
Thank you very much =D, it worked out, but it only goes once, how could I duplicate them all at once?
– Benhur Da Silveira Kulzer
Run a query for each account.
– Daniel
Or change the condition
WHERE
if the data to be entered are exactly the same– Leonardo Pessoa