如何使用select在新行中拆分字符串 [英] How to split string in new line using select

查看:120
本文介绍了如何使用select在新行中拆分字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用选择分割新行中的字符串



示例

选择abc,def



我的预期输出是

abc

def



[edit]

How to split string in new line using select

example
select abc,def

my expected output is
abc
def

[edit]

name 
abc,def
sdf
edf







预期结果






expected result

name
abc
def
sdf
edf

推荐答案

最好的建议是:不要将数据存储为逗号分隔值 - 它看起来似乎很简单,但总是会出现问题。

请看这里处理它的方法:将列中的逗号分隔数据转换为行以供选择 [ ^ ]
The best suggestion is: don't store data as comma separated values - it seems simple to start with but it always gives problems.
See here for a way of dealing with it: Converting comma separated data in a column to rows for selection[^]


您可以使用将列中逗号分隔的数据转换为行供选择 [ ^ ]。


这篇关于如何使用select在新行中拆分字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆