tagged [sql-update]

SQL Update with row_number()

SQL Update with row_number() I want to update my column CODE_DEST with an incremental number. I have: I would like to update it to be: I have tried this code: ``` UPDATE DESTINATAIRE_TEMP SET CODE_DES...

Update or Insert (multiple rows and columns) from subquery in PostgreSQL

Update or Insert (multiple rows and columns) from subquery in PostgreSQL I'm trying to do something like this in postgres: - `UPDATE table1 SET (col1, col2) = (SELECT col2, col3 FROM othertable WHERE ...

1 May at 18:24

Entity Framework Attach/Update confusion (EF Core)

Entity Framework Attach/Update confusion (EF Core) As I understand, when "Update" is called, every property within a specific entity is modified. The "Attach" method, on the other hand, starts the ent...

18 Apr at 14:57

Update some specific field of an entity in android Room

Update some specific field of an entity in android Room I am using android room persistence library for my new project. I want to update some field of table. I have tried like in my `Dao` - But when I...

24 Oct at 18:20

MySQL - UPDATE query based on SELECT Query

MySQL - UPDATE query based on SELECT Query I need to check (from the same table) if there is an association between two events based on date-time. One set of data will contain the ending date-time of ...

6 Jun at 02:30

SQL Update from One Table to Another Based on a ID Match

SQL Update from One Table to Another Based on a ID Match I have a database with `account numbers` and `card numbers`. I match these to a file to `update` any card numbers to the account number so that...

23 May at 16:50

UPDATE multiple rows with different values in one query in MySQL

UPDATE multiple rows with different values in one query in MySQL I am trying to understand how to UPDATE multiple rows with different values and I just don't get it. The solution is everywhere but to ...

14 May at 18:32

Queries in MS-Access:formatting a field in the middle of an sql UPDATE code

Queries in MS-Access:formatting a field in the middle of an sql UPDATE code I am having yet another problem with my data in ms-access. Basically, what i'm doing is using multiple sql statements to pul...

2 May at 16:52

updating table rows in postgres using subquery

updating table rows in postgres using subquery I have this table in a postgres 8.4 database: I want to update the table. Initially i tested my q

10 Jan at 00:29

How to conditionally INSERT OR REPLACE a row in SQLite?

How to conditionally INSERT OR REPLACE a row in SQLite? I would like to insert or replace_on_condition. If the condition is not satisfied, do not insert or replace. Is this possible? For my project, I...

27 Nov at 10:38