相关疑难解决方法(0)

SQL选择列以\开头的位置\

我正在尝试查找ColumnX数据以a开头的所有数据\.
like '\%'我在寻找什么呢?但\必须在一开始.

sql pattern-matching

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

Search for string that start or finish with spaces and removing these spaces

I have a table that some column have spaces, like this:

Column A
-----------
"text 1"
" text 2"
"text 3 "
" text 4 "
Run Code Online (Sandbox Code Playgroud)

I want to do a select that return those columns with spaces (beginning or end)

" text 2"
"text 3 "
" text 4 "
Run Code Online (Sandbox Code Playgroud)

Is that possible?

After search for them, How could I update those columns to remove the spaces?

postgresql

1
推荐指数
1
解决办法
1189
查看次数

标签 统计

pattern-matching ×1

postgresql ×1

sql ×1