SQL:将'ABCD'字符串先转化为小写,然后用相反的顺序存放在一个变量中,并且输出其值
发布网友
发布时间:2022-05-12 08:50
我来回答
共3个回答
热心网友
时间:2024-02-20 16:15
declare @lenth int,@strin varchar(1000),@strout varchar(1000)
set @strin=lower('ABCD')
set @lenth=len(@strin)
set @strout=''
while @lenth>0
begin
set @strout=@strout+substring(@strin,@lenth,1)
set @lenth=@lenth-1
end
print @strout
热心网友
时间:2024-02-20 16:15
Private Sub Form_Click()
Dim a As String, b(4) As String, c As String
a = "ABCD"
Print a
a = LCase(a)
Print a
For i = 1 To 4
b(i) = Mid(a, 5 - i, 1)
c = c & b(i)
Next
Printc
End Sub
热心网友
时间:2024-02-20 16:16
select reverse(lower('ABCD'))