Skip to content

Commit

Permalink
update sql
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkPotato777 committed Dec 30, 2024
1 parent a307a73 commit 9b2a3d3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
UPDATE connect_database AS cd
JOIN connect_connection AS cc ON cd.connection_id = cc.id
SET cd.connect_type = cc.type
WHERE cd.connect_type IS NULL AND cd.type = 'PHYSICAL';
UPDATE connect_database
SET connect_type = (
SELECT cc.type FROM connect_connection cc
WHERE connect_database.connection_id = cc.id
)
WHERE connect_type IS NULL AND type = 'PHYSICAL';

0 comments on commit 9b2a3d3

Please sign in to comment.