skip to main
|
skip to sidebar
Wednesday, 24 October 2007
Update multiple rows from a query
use the following SQL as an example:
UPDATE the_table
SET a_column=a.other_column
FROM (
select other_id,other_column from other_table
)as a
WHERE
the_table.id = a.other_id
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
►
10
(2)
►
06
(1)
►
02
(1)
►
09
(4)
►
08
(1)
►
07
(1)
►
06
(1)
►
03
(1)
►
08
(3)
►
03
(1)
►
02
(1)
►
01
(1)
▼
07
(5)
►
11
(1)
▼
10
(1)
Update multiple rows from a query
►
08
(3)