Top "Insert" questions

Insert is an action to add information to a larger container that the information should reside within.

Open window in JavaScript with HTML inserted

How would I open a new window in JavaScript and insert HTML data instead of just linking to an HTML …

javascript html insert
How can I INSERT data into two tables simultaneously in SQL Server?

Let's say my table structure looks something like this: CREATE TABLE [dbo].[table1] ( [id] [int] IDENTITY(1,1) NOT NULL, [data] [varchar](255) …

sql sql-server tsql insert foreign-keys
PostgreSQL: insert from another table

I'm trying to insert data to a table from another table and the tables have only one column in common. …

sql postgresql insert append
MySQL - ignore insert error: duplicate entry

I am working in PHP. Please what's the proper way of inserting new records into the DB, which has unique …

php mysql insert
Copy data from one existing row to another existing row in SQL?

I have a table full of tracking data for as specific course, course number 6. Now I have added new tracking …

sql insert copy row
Add (insert) a column between two columns in a data.frame

I have a data frame that has columns a, b, and c. I'd like to add a new column d …

r dataframe insert
Python pandas insert list into a cell

I have a list 'abc' and a dataframe 'df': abc = ['foo', 'bar'] df = A B 0 12 NaN 1 23 NaN I want to …

python list pandas insert dataframe
What is the preferred/idiomatic way to insert into a map?

I have identified four different ways of inserting elements into a std::map: std::map<int, int> function; …

c++ stl insert stdmap std-pair
oracle plsql: how to parse XML and insert into table

How to load a nested xml file into database table ? <?xml version="1.0" ?> <person> <row> &…

xml oracle plsql insert xml-parsing
How can INSERT INTO a table 300 times within a loop in SQL?

I would like to insert a value retrieved from a counter in SQL and repeat it 300 times. Something like: DECLARE @…

sql-server tsql loops insert