insert-update
Ways to update a dependent table in the same MySQL transaction?
I need to update two tables inside a single transaction. The individual queries look something like this:[详细]
2022-12-23 13:47 分类:问答INSERT INTO ... SELECT FROM ... ON DUPLICATE KEY UPDATE
I\'m doing an insert query where most of many columns would need to be updated to the new values if a unique key already existed. It goes something like this:[详细]
2022-12-23 03:32 分类:问答Create new or update existing entity at one go with JPA
A have a JPA entity that has timestamp field and is distinguished by a complex identifier field. What I need is to update timestamp in an entity that has already been stored, otherwise create and stor[详细]
2022-12-21 02:08 分类:问答T-SQL Insert or update
I have a question regarding performance of SQL Server. Suppose I have a table persons with the following columns: id, name, surname.[详细]
2022-12-20 14:15 分类:问答SQL - SQLDataAdapter Update causing primary key violation
I need to be able to change the primary keys in a table.The problem is, some of the keys will be changing to existing key values. E.g. record1.ID 3=>4 and record2.ID 4=>5.I need to开发者_开发百科 keep[详细]
2022-12-16 00:21 分类:问答MVC one to zero inserting not updating
I am using EntityFramework. I have an \"Application\" object (which has a field certificateReasonID) which can have one or zero CertificateReasons - so there is a ralationship to the \"CertificateReas[详细]
2022-12-15 15:16 分类:问答How to INSERT a record or UPDATE if it already exists?
I have a table with col开发者_开发问答umns record_id (auto inc), sender, sent_time and status.[详细]
2022-12-15 04:30 分类:问答LINQ to SQL update problems in WPF application
I\'m developing a WPF application (.NET 3.5SP1).开发者_C百科 The scenario is this: 1.using SQL Metal to extract the entity definitions (and the corresponding map file), which were afterwards used for[详细]
2022-12-13 15:03 分类:问答Data Manipulation (INSERT,UPDATE) using DataSet Object with VB.NET
I am newbie at using DataSet. I am writing a program with VB.NET, there I have to select data from one table. Then I have to update about 4 tables and insert to 2 Tables. Which approach will be ok for[详细]
2022-12-10 23:19 分类:问答