我有一张桌子,它有3列.的first column是包含值(数字)和单元中的数据(百分比和等.),第2栏是numeric column,第三是Unit column.我想要做的是从第一列拆分数字和单位,然后将这些拆分数据放到指定的列.
这是我的表:

我试过这个函数:SO链接在这里......,它确实拆分了alpha和数字然后我是新的使用SQL函数,我的问题是参数必须是字符串STRING,所以我做的是将它改为Sub查询,但它给我错误.
样品编号:
SQL功能:
create function [dbo].[GetNumbersFromText](@String varchar(2000))
returns table as return
(
with C as
(
select cast(substring(S.Value, S1.Pos, S2.L) as int) as Number,
stuff(s.Value, 1, S1.Pos + S2.L, '') as Value
from (select @String+' ') as S(Value)
cross apply (select patindex('%[0-9]%', S.Value)) as S1(Pos)
cross apply (select patindex('%[^0-9]%', stuff(S.Value, 1, S1.Pos, ''))) as S2(L)
union all
select cast(substring(S.Value, S1.Pos, S2.L) as int),
stuff(S.Value, 1, …Run Code Online (Sandbox Code Playgroud) 我有11个点使用CSS水平排列。如何<span>根据浏览器窗口的宽度均匀/平均地分配元素之间的间距(我是元素)?
到目前为止,这是我的示例代码:
span.circle {
height: 20px;
width: 20px;
border-radius: 100%;
border: 1px solid #eee;
background:#ddd;
position: absolute;
left:0;
top: 45px;
cursor: pointer;
transition: all 0.4s ease-in-out;
}
#second{
left: 190px;
}
#third{
left: 380px;
}
#fourth{
left: 570px;
}
#five{
left: 760px;
}
#six{
left: 950px;
}
#seven{
left: 1140px;
}
#eight{
left: 1330px;
}
#nine{
left: 1520px;
}
#ten{
left: 1710px;
}
#eleven{
left: 1900px;
}Run Code Online (Sandbox Code Playgroud)
<span id="first" class="border-change circle"></span>
<span id="second" class="circle"></span>
<span id="third" class="circle"></span>
<span …Run Code Online (Sandbox Code Playgroud)