Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 15 Μαρ 2010 · If you have lots of records to update, use join, so something like: update (select bonus from employee_bonus b inner join employees e on b.employee_id = e.employee_id where e.bonus_eligible = 'N') t set t.bonus = 0;

  2. 4 Ιαν 2021 · In this article we compare how to execute updates when using a join between SQL Server, Oracle and PostgreSQL. Solution Below we will do a comparison of the different syntax used to update data when using a join.

  3. 19 Φεβ 2015 · SELECT * FROM PERSON p. INNER JOIN CONTACT on CONTACT.PERSON_ID = p.PERSON_ID. WHERE CONTACT.CURRENT_YEAR_ID = (. SELECT CURRENT_YEAR_ID FROM CURRENT_YEAR WHERE DEFAULT_YEAR = 1. ); Tried another variant : UPDATE CONTACT. SET CONTACT.PHONE = p.PHONE, CONTACT.FAX = p.FAX.

  4. SQL Server UPDATE JOIN syntax. To query data from related tables, you often use the join clauses, either inner join or left join. In SQL Server, you can use these join clauses in the UPDATE statement to perform a cross-table update.

  5. 26 Απρ 2017 · What I wrote for the above is this: ALTER TABLE a ADD COLUMN Material INTEGER. UPDATE a SET Material = CASE. WHEN a.Element <= 300000. THEN 80000. ELSE b.Material FROM. a JOIN b ON (a.PCOMP = b.PCOMP AND a.Ply= b.Ply) END. I am using SQLite 3.14.1.

  6. 9 Ιουν 2023 · In some database vendors (SQL Server, MySQL, PostgreSQL), you are able to use a JOIN in an UPDATE statement to update data using values in another table. The parameters are: table1: The name of the table you want to update. column: The column whose value you want to update.

  7. 21 Σεπ 2017 · update (select a.category as defaultcategory from a left join b on b.xx_id = a.xx_id left join c on c.zz_id = b.zz_id left join d on d.yy_id = c.yy_id where d.yy_id = ‘123’) dc set dc.defaultcategory = (select kk_id from cc where name = 'NNN')