小编Bar*_*ard的帖子

How to append value of column with double quotes (add quotes around string)

I have a table with a column that is TEXT type. In the column are numeric characters. What I'm trying to achieve is to wrap those characters in double quotes.

EXAMPLE:

NAME     ID     QTY
Apples   A1     1
Oranges  O1     1
Foo      F1     0
Run Code Online (Sandbox Code Playgroud)

IDEAL OUTPUT:

NAME     ID     QTY
Apples   A1     "1"
Oranges  O1     "1"
Foo      F1     "0"
Run Code Online (Sandbox Code Playgroud)

I attempted to run the following SELECT statement but it didn't give me the result I was expecting. Perhaps you can guide me …

mysql concat

11
推荐指数
1
解决办法
4万
查看次数

标签 统计

concat ×1

mysql ×1