Skip to content

Commit 9b2a3d3

Browse files
committed
update sql
1 parent a307a73 commit 9b2a3d3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
UPDATE connect_database AS cd
2-
JOIN connect_connection AS cc ON cd.connection_id = cc.id
3-
SET cd.connect_type = cc.type
4-
WHERE cd.connect_type IS NULL AND cd.type = 'PHYSICAL';
1+
UPDATE connect_database
2+
SET connect_type = (
3+
SELECT cc.type FROM connect_connection cc
4+
WHERE connect_database.connection_id = cc.id
5+
)
6+
WHERE connect_type IS NULL AND type = 'PHYSICAL';

0 commit comments

Comments
 (0)