Questions tagged [insert]

Insert is an action to add information to a larger container that the information should reside within. Some examples include inserting a file into a file system, inserting a record into a database, or inserting an item into a list.

Filter by
Sorted by
Tagged with
0 votes
2 answers
22 views

duplicate key update with select

I have gone through several posts but unable to find the exact fix. Here is what I want - Table1 - column1, column2, column3, amount as column4 Table2 - column1, column2, column3, amount as column4 I ...
Jitesh Gala's user avatar
-1 votes
0 answers
26 views

curse.execute("INSERT INTO info (username,level) VALUES(got,1)") sqlite3.OperationalError: no such column: got [duplicate]

I am trying to insert data into a database wuth python and sql. This is the code im using: e1 = Entry(win, width=30) e1.pack() def clicked(): got = e1.get() conn = sqlite3....
HVCTXRF's user avatar
-2 votes
0 answers
14 views

My mysql query does not store the data properly, can one tell me where the failure is? [closed]

$mysqli->query("UPDATE table SET field1='".$somedata."',field2=" . ($datum==NULL ? "NULL" : "'".date('Y-d-m',strtotime($datum))."'") . " WHERE ...
Gabi's user avatar
  • 1
-1 votes
0 answers
22 views

Is there any way to insert data into a column of table1 from another table2 with out adding rows in the table1? [closed]

I have a table1 with newly added column name productname and another table2 having the data of the productname. i need to insert the productname from table2 to table1 with out adding new rows in the ...
elza joy's user avatar
0 votes
1 answer
69 views

SQL Server using CTE for Insert

I have an asterisk delimited flat file, I import it into a single column in a table to check for errors. Once happy, I then want to split it up and insert it into a table with a 17 columns that ...
Andy Murphy's user avatar
-2 votes
0 answers
59 views

Data inserted in database but value is NULL (I am using name spacing on naming the table and its fields)

Can somebody help me please? In my office they're using Ms. Access for work and i just try to developing a new webapp using php ci 3. there are some problem. So i am just inserting data using ci 3. ...
IMAM IHSANI's user avatar
0 votes
3 answers
60 views

Iterative Insertion Reverse Search

I have a code that iteratively inserts itself at user specified positions. It gives a long string as a result of the iteration. What I need is to do the reverse. Writing a code that takes a string and ...
SJ Brigante's user avatar
0 votes
1 answer
60 views

Postgres | Convert Rows of Arrays to Rows of Integers

I've hit a roadblock that I can't seem to get past as I'm not able to visualize the data. I'm fairly new to Postgres (more experienced with Snowflake, but no longer have access), but due to the ...
UnInfamousAlec's user avatar
0 votes
0 answers
18 views

How to add an event on long press empty view

I am using the library by Alam Kanak accessible at this github link https://github.com/alamkanak/Android-Week-View/tree/master For the function "onEmptyViewLongPress" I would like the user ...
Maitreyee Tewari's user avatar
1 vote
1 answer
55 views

Inserting row with irregular table using javascript

I have this table: <table class="w-full border "> <caption class="text-start mx-2 text-lg font-semibold"> A. Specify Modules ...
Ben's user avatar
  • 57
0 votes
0 answers
25 views

How to correctly write an append query in SQL VBA access

Trying to write VBA to append data tracking info to a table. But can't seem to get this code to work. DoCmd.RunSQL "INSERT INTO tblCabinetPNr14Updates SELECT * FROM tblCabinetPNr14, " &...
Noel de la Rosa's user avatar
0 votes
1 answer
51 views

How to return newly inserted item(row) id using android room (Kotlin) on Compose?

I need to get the Auto generated ID of a record added to a ROOM database table. Looking to answer my problem I found the following answer: text But in my case is not a solution because in Compose I ...
user924223's user avatar
0 votes
2 answers
33 views

How to create multiple documents at once in mongodb using mongoose in nodejs. Even If some fails rest should be inserted and output should be summary

I want to insert/create multiple documents in mongodb using mongoose in nodejs. Now even if some of the inserts fail may be due to duplicate key the others should be inserted and finally I should have ...
Vishal Gupta's user avatar
1 vote
1 answer
52 views

How can I specify for SQL to read a string in ordinary quote in DuckDB?

I have written a python queries with DuckDB: import duckdb con = duckdb.connect() con.query('CREATE TABLE people(id INTEGER, name VARCHAR);') con.query('INSERT INTO people VALUES (1, 'Mark'), (2, '...
Антон Попенко's user avatar
0 votes
2 answers
61 views

RoomDatabase Insert doesnt work and no error to find why

i am using room database when i insert data, i can not read it again and i dont know what is the problem because there is no error for sql the question is what is the problem and how sql throws ...
mamad zd's user avatar
0 votes
2 answers
98 views

Insert rows into database table from 2d json data using a PDO prepared statement [closed]

I do a lot of data transfers from sites to sites mainly DB data.. Latest was a simple pdo DB query, fetchall, then Jason encode the data, send to remote site and populate database with data, same ...
Radium Chris's user avatar
-1 votes
0 answers
18 views

Sql Value problems [duplicate]

I just started using sql but already came across a problem. when I try to Insert values into my tables columns I get the Error: "Table 'Table-Name' doesn't exist in engine" and that happens ...
Noco's user avatar
  • 1
-1 votes
0 answers
27 views

How to insert the values of a table in an other table with different schema (less columns and different types) in a sql database?

In a sql database I have multiple tables (>50). 25 tables have the right schema (columns and types) but are empty (call it table A). 25 tables have similar columns (often much more columns) with ...
Herwini's user avatar
  • 385
0 votes
0 answers
21 views

Google sheets insert a row into a mapped array

I have a google sheets with a routine to update a master sheet with data from another sheet. The master sheet has a name in column 1 and data in the adjacent 18 columns. The Master sheet is sorted by ...
FeDude's user avatar
  • 3
1 vote
1 answer
67 views

unnatural amino acid insert to the protein

I want to ask that how can I load my unnatural amino acid.mol to the specific protein site? I think if there is a plugin can achieve this? Or is there annother software can achieve this? Thank you so ...
user22799757's user avatar
-3 votes
1 answer
59 views

Inset Values at Table

enter image description here why i am getting this error.
siva pathagunta's user avatar
1 vote
1 answer
54 views

Compound query with union-all and order-by sorts only the last part instead of the whole query

This works as expected: select * from table(sys.OdciNumberList(2,1,3)) union all select * from table(sys.OdciNumberList(5,6,4)) union all select * from table(sys.OdciNumberList(9,7,8)) order by 1; ...
ESkri's user avatar
  • 1,582
0 votes
0 answers
293 views

How to insert array of values into column of postgres table using drizzle orm

this is the result array Result(1) [ { userid: '9d42ff1c-55e5-4e65-95cb-c110ae2d7196', workername: '[email protected]', phonenumber: 'pavanreqwo', scplace: '...
pavan octa's user avatar
0 votes
0 answers
56 views

Incorrect insertion of data into the table

I have a table for storing images in a database (#TempImage). It contains the following columns: Image_ID Obj_id Body TYPE 1 22 0x89504E470D0A1A0A0000000D494844 image/png 2 23 ...
Twinkles's user avatar
0 votes
2 answers
66 views

What is the point of creating table with no data in SQL?

I'm looking at somebody else's code and they've got about 200 lines where they use CREATE TABLE with a SELECT STATEMENT, just to finish it with the statement WITH NO DATA And then directly underneath, ...
Pop23's user avatar
  • 19
0 votes
2 answers
113 views

How to rightly configure an Azure data factory data flow with a delta file as sink?

I am trying to sink data to a delta file. I want to use a insert and update method using the unique Id column: (sink settings) Whenever the update method is allowed a AlterRow operation will appear. ...
Herwini's user avatar
  • 385
0 votes
0 answers
23 views

Deadlock caused by insert statements in MySQL 8.0

I have a table A which has a schema like this, CREATE TABLE `A` ( `id` char(14) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `...
Chirag Chiranjib's user avatar
0 votes
0 answers
28 views

how to insert a value into a postgresql database table through a variable [duplicate]

import psycopg2 title = 'a' author = 'b' genre = 'c' isbn = 23 year_of_publication = 2012 borrow_status = 'available' return_date = None conn = psycopg2.connect(dbname='lincoln_library', user='...
levi mungai's user avatar
0 votes
2 answers
30 views

Copy data from a particular column of a table to a particular column in an empty table in sql server

Can anyone help me with this? I have two tables with different columns,just one column is same for both tables. I want to copy data from a particular column of the source table to a particular column ...
user19992807's user avatar
0 votes
1 answer
85 views

How do I get the next available Line No. when inserting a line into a table using AL

I have made a codeunit in AL that lets me insert a line into the Output Journal using the Item Journal Line record in Business Central. I have managed to insert the values I want and validate them ...
hagru's user avatar
  • 43
0 votes
0 answers
195 views

Is there a way to insert new record for iceberg table using pyiceberg api?

I want to insert new record to an iceberg table using pyiceberg api. Connection was established and i can fetch the existing records in the table using the displayData() fun. However, i couldn't find ...
lion's user avatar
  • 39
1 vote
0 answers
31 views

Insert via remote HTTP/SPARQL in Jena - Spring Boot 3

I am looking for a way to construct a SPARQL insert query in Jena, and upload it to a remote SPARQL endpoint (served by Virtuoso's Open Edition, if it matters). Most of the documentation references ...
LongStreak's user avatar
0 votes
0 answers
77 views

Better way of inserting in a map of pointers c++

I have the following structure and a class struct myStruct { int a; int b; int c; }; class myClass { map<int, myStruct*> myMap; int i; //and few other member variables ...
arjun gulyani's user avatar
0 votes
2 answers
56 views

Excel cut and insert based on a cell value

In a shared workbook I'm getting a 1004 error about: "Insert method of range failed." I have been using the following code for years. (Non shared mode) Private Sub Workbook_SheetChange(ByVal ...
Mike Wild's user avatar
0 votes
0 answers
19 views

How to rollback partial inserts in MongoDB replica sets in presence of writeconcern

Consider a 4 member MongoDB replica set. Consider also that we use writeconcern(w:4) during insertions to achieve consistency. Then, if one of the replica set members is off, the insertion will "...
RafaelCaballero's user avatar
0 votes
0 answers
62 views

Upload images into SQL server database table using PHP code

I'm a beginner in working with php and sql server. I have been working on a php code which its functionality is upload an image in a sqlsrv table. At this moment my code can be able to save the image ...
Dprogrammer's user avatar
1 vote
2 answers
32 views

Insert a document to a MongoDB

I am trying to build a simple API connected to a MongoDB. I have customers and I want to add those to the DB This is my customer class: public class Customer : BaseCustomer { public Customer(...
philipp's user avatar
  • 25
0 votes
0 answers
13 views

Move main ggplot to accommodate insert

I would like to move a main ggplot to accommodate an insert. If we work with the David Wachsmuth example. ## Attach libraries library(dplyr) library(ggplot2) library(sf) library(cancensus) library(...
arkriger's user avatar
  • 232
0 votes
2 answers
84 views

Place quotes & add comma around many items in WHERE

I have a very long list of codes for a WHERE statement in SQL Server that I would like to 'quickly' add quotes around each one and a comma at end of each one. I would like to take the huge list like ...
KLR's user avatar
  • 61
0 votes
0 answers
15 views

In JavaScript how do I place the caret in a new element inserted in a contenteditable?

I am inserting a new list item element into a list when the user presses enter from within one of the existing li's: $('#thread-content').on('keypress', function(e) { if(e.which==13){ e....
Ping's user avatar
  • 311
1 vote
1 answer
84 views

Processing data row by row while bulk insert using JSON in SQl server

Need to Generate Tag Number While Inserting Data using JSON in SQl Server Stored Procedure. I have 2 Tables Table1: Category (lastusedIndex null in initial stage) Id categoryname assetPrefix ...
Relax's user avatar
  • 325
-2 votes
2 answers
57 views

INSERT from one table to another but assign new PRIMARY KEYs

I have two MySQL tables. One is a large list of entries which is basically the main table. The second is a table of pending entries. Pending entries will either be merged into the large list of ...
azoundria's user avatar
  • 956
-2 votes
1 answer
69 views

Checking whether a character in a string is a space does not work

I need to add two zeroes before each part with 6 numbers in a string without deleting the spaces between these parts. Here's the code: #include <iostream> #include <string> using namespace ...
Andrew's user avatar
  • 11
0 votes
0 answers
70 views

How I can dynamically add HTML with if /else or swtich/case conditions

What I'm trying to do : I want to create an html code generator. The idea is to be able to create an email skeleton, with the possibility for the user, via inputs, to modify certain data, such as the ...
blogob's user avatar
  • 482
0 votes
1 answer
34 views

Problem while inserting a standalone game project (HTML/JS) inside a React component in production mode

I want to render a standlone html js project (game project) inside a react component. In my local machine it works fine with this code: import styled from "styled-components"; const GAME_URL ...
Ray's user avatar
  • 13
0 votes
2 answers
40 views

how can i insert a standlone game project (html js) inside a react component?

I want to render a standlone html js project (game project) inside a react component. standlone html js project portion code: react component export default function Tetris() { function iframe() { ...
Ray's user avatar
  • 13
0 votes
0 answers
23 views

Insert into table until it reaches a certain amount

I need to insert a few rows from one table to another but until it reaches a certain amount (qty is on another table). I was wondering if that is possible. I need to insert rows from table 1 into ...
Bria's user avatar
  • 1
0 votes
1 answer
37 views

Google Sheets: Compare Two Values in Different Cells and Insert Symbol In Another Cell Depending on Comparison Result

In Google Sheets, I want to write a formula that compares the values between two cells in the same row and then inserts a specific symbol in another cell depending on which one is larger. Please see ...
PineNuts0's user avatar
  • 4,906
2 votes
2 answers
60 views

Can someone explain to me the commands [0][1][2] in the code below and how they work

if __name__ == '__main__': N = int(input()) my_list = [] # Initialize an empty list to perform operations on. for _ in range(N): command = input().split() # Read the command as ...
Kigoni mike's user avatar
0 votes
1 answer
135 views

Why does Azure Logic App SQL Trigger not fire

I'm using the "When a row is inserted" SQL connector in my logic app workflow. I turned on change tracking on the Azure SQL DB and the table in question per requirements. The connector ...
VictorG's user avatar

1
2 3 4 5
287