Skip to content

Commit 228588e

Browse files
authored
Merge pull request #89277 from HJToland3/localworking
shau fix
2 parents 6aeb271 + 2d971bc commit 228588e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/dms/tutorial-rds-mysql-server-azure-db-for-mysql-online.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: dms
1010
ms.workload: data-services
1111
ms.custom: mvc, tutorial
1212
ms.topic: article
13-
ms.date: 07/31/2019
13+
ms.date: 09/21/2019
1414
---
1515

1616
# Tutorial: Migrate RDS MySQL to Azure Database for MySQL online using DMS
@@ -104,15 +104,15 @@ To complete this tutorial, you need to:
104104
FROM
105105
(SELECT
106106
KCU.REFERENCED_TABLE_SCHEMA as SchemaName,
107-
KCU.TABLE_NAME,
108-
KCU.COLUMN_NAME,
109-
CONCAT('ALTER TABLE ', KCU.TABLE_NAME, ' DROP FOREIGN KEY ', KCU.CONSTRAINT_NAME) AS DropQuery,
107+
KCU.TABLE_NAME,
108+
KCU.COLUMN_NAME,
109+
CONCAT('ALTER TABLE ', KCU.TABLE_NAME, ' DROP FOREIGN KEY ', KCU.CONSTRAINT_NAME) AS DropQuery,
110110
CONCAT('ALTER TABLE ', KCU.TABLE_NAME, ' ADD CONSTRAINT ', KCU.CONSTRAINT_NAME, ' FOREIGN KEY (`', KCU.COLUMN_NAME, '`) REFERENCES `', KCU.REFERENCED_TABLE_NAME, '` (`', KCU.REFERENCED_COLUMN_NAME, '`) ON UPDATE ',RC.UPDATE_RULE, ' ON DELETE ',RC.DELETE_RULE) AS AddQuery
111-
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE KCU, information_schema.REFERENTIAL_CONSTRAINTS RC
112-
WHERE
113-
KCU.CONSTRAINT_NAME = RC.CONSTRAINT_NAME
114-
AND KCU.REFERENCED_TABLE_SCHEMA = RC.UNIQUE_CONSTRAINT_SCHEMA
115-
AND KCU.REFERENCED_TABLE_SCHEMA = ('SchemaName') Queries
111+
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE KCU, information_schema.REFERENTIAL_CONSTRAINTS RC
112+
WHERE
113+
KCU.CONSTRAINT_NAME = RC.CONSTRAINT_NAME
114+
AND KCU.REFERENCED_TABLE_SCHEMA = RC.UNIQUE_CONSTRAINT_SCHEMA
115+
AND KCU.REFERENCED_TABLE_SCHEMA = 'SchemaName') Queries
116116
GROUP BY SchemaName;
117117
```
118118

0 commit comments

Comments
 (0)