Top "Copy" questions

To copy is to create a duplicate of an object without destroying the original.

How do I copy a folder from remote to local using scp?

How do I copy a folder from remote to local host using scp? I use ssh to log in my …

shell command-line copy scp
How do I copy a file in Python?

How do I copy a file in Python? I couldn't find anything under os.

python file copy filesystems file-copying
List changes unexpectedly after assignment. How do I clone or copy it to prevent this?

While using new_list = my_list, any modifications to new_list changes my_list everytime. Why is this, and how …

python list copy clone
How do I copy an object in Java?

Consider the code below: DummyBean dum = new DummyBean(); dum.setDummy("foo"); System.out.println(dum.getDummy()); // prints 'foo' DummyBean dumtwo = …

java object copy clone
Copy tables from one database to another in SQL Server

I have a database called foo and a database called bar. I have a table in foo called tblFoobar that …

sql sql-server copy migrate database-table
Make copy of an array

I have an array a which is constantly being updated. Let's say a = [1,2,3,4,5]. I need to make an exact duplicate …

java arrays copy
Fastest way to duplicate an array in JavaScript - slice vs. 'for' loop

In order to duplicate an array in JavaScript: which of the following is faster to use? ###Slice method var dup_…

javascript arrays duplicates copy slice
How can I create a copy of an Oracle table without copying the data?

I know the statement: create table xyz_new as select * from xyz; Which copies the structure and the data, but …

sql oracle copy database-table
How to copy a row and insert in same table with a autoincrement field in MySQL?

In MySQL I am trying to copy a row with an autoincrement column ID=1 and insert the data into same …

mysql sql insert copy