如何在sql中将字符串拆分为不同的部分。 [英] How can I split a string into different parts in sql.

查看:361
本文介绍了如何在sql中将字符串拆分为不同的部分。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据类型将字符串123test $%^拆分为不同的部分。任何人都可以根据他们的类型帮助我。

I want to split a string 123test$%^ into different parts based on their type. Can any one help me.

推荐答案

%^到不同的部分。任何人都可以帮助我。
%^ into different parts based on their type. Can any one help me.


一种使用Transact-SQL拆分字符串的简单而有效的方法 [ ^ 的有效方式分割字符串



http://stackoverflow.com/questions/2647/split-string-in-sql [<一个href =http://stackoverflow.com/questions/2647/split-string-in-sqltarget =_ blanktitle =新窗口> ^ ]



http://sqltutorials.blogspot.in/2007/09/sql -function-split.html [ ^ ]



这个链接可以帮助你
An Easy But Effective Way to Split a String using Transact-SQL[^]

http://stackoverflow.com/questions/2647/split-string-in-sql[^]

http://sqltutorials.blogspot.in/2007/09/sql-function-split.html[^]

this links may help u


试试SUBSTRING或右或左;只需查看初学者的STRING功能

Try SUBSTRING or RIGHT or LEFT; just check out the STRING functions for starters
DECLARE @frastr [nvarchar](128), @dmyndlstr[nvarchar](128), @nfrnchsint [int], @dracint [int]
SET @frastr = ''123Test


这篇关于如何在sql中将字符串拆分为不同的部分。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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