doc-exports/docs/dws/tool/dws_16_0179.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:35:25 +00:00

4.2 KiB

Quotation Marks

Single Quotation Mark (')

Aliases in MySQL contain single quotation marks, which are not supported by GaussDB(DWS). DSC changes them to double quotation marks during migration.

Input

select name as 'mingzi' from t1;

Output

SELECT
  name AS "mingzi"
FROM
  t1;

Backquote (`)

Aliases and column names in MySQL contain backquotes, which are not supported by GaussDB(DWS). DSC changes them to double quotation marks during migration.

Input

select `name` as `mingzi` from t1;

Output

SELECT
  "name" AS "mingzi"
FROM
  t1;

Double Quotation Mark (")

In MySQL, constant strings are enclosed in double quotation marks, which are not supported by GaussDB(DWS). DSC changes them to single quotation marks during migration.

Input

select name from t1 where name = "test2";

Output

SELECT
  name
FROM
  t1
WHERE
  name = 'test2';