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

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

  1. 23 Φεβ 2012 · In Oracle you can update a join if the tables are "key-preserved", ie: UPDATE (SELECT a.val_a, b.val_b. FROM table a. JOIN table b ON a.b_pk = b.b_pk) SET val_a = val_b. Assuming that b_pk is the primary key of b, here the join is updateable because for each row of A there is at most one row from B, therefore the update is deterministic.

  2. 19 Φεβ 2015 · For example: UPDATE CONTACT C SET (C.PHONE, C.FAX) = ( SELECT P.PHONE, P.FAX FROM PERSON P WHERE P.PERSON_ID = C.PERSON_ID ) WHERE C.CURRENT_YEAR_ID = ( SELECT CURRENT_YEAR_ID FROM CURRENT_YEAR WHERE DEFAULT_YEAR = 1 ); (You'll have to check my logic, because I'm not entirely clear on your relationships.)

  3. 27 Δεκ 2023 · Before diving into complex examples, let's understand the basic syntax of an update with a join operation in Oracle: sql UPDATE table1 SET table1.target_column = (SELECT table2.source_column FROM table2 WHERE table1.join_column = table2.join_column) WHERE EXISTS (SELECT 1 FROM table2 WHERE table1.join_column = table2.join_column); In the above ...

  4. The following statement updates three columns, FLIGHT_NUMBER, FLIGHT_DURATION, and OPERATING_CARRIER_CODE, in a single row of the FLIGHTS table. The row to be updated is identified using the WEHERE clause. A SELECT statement displays the updated content for the FLIGHTS table for verification.

  5. 24 Μαΐ 2017 · Usually, when you need to join multiple tables in an UPDATE, MERGE is the solution. merge into address a1 using ( select p.address_fk, ta2.tempaddress1 from premise p join account ac on (ac.id = p.account_fk) join tempaddresstable ta2 on (ac.ext_ref = ta2.tempextref) ) ta1 on (a1.id = ta1.address_fk) when matched then update set a1.address1 ...

  6. 30 Μαΐ 2011 · From Oracle Database 23ai you can use direct joins in update to copy values from one table to another:

  7. Oracle syntax joins tables in the where clause. ANSI style has a separate join clause. This tutorial will show both methods. We recommend you use ANSI syntax. This clearly separates the join and filter clauses. This can make your query easier to read, particularly with outer joins.

  1. Γίνεται επίσης αναζήτηση για