0
A
回答
0
你可以分割字符串,但我認爲這是沒有更好的解決辦法
0
declare @s varchar(50)
set @s = 'RCPT10-66631'
select cast(cast(right(@s, len(@s)-charindex('-', @s, 0)) as int)+1 as varchar(50))
相關問題
- 1. SQL Server中的字符串操作
- 2. MS SQL Server中的字符串操作
- 3. 在SQL Server 2005中連接字符串
- 4. 與日期字符串和SQL Server 2005的ASP.Net SQL字符串
- 5. SQL Server中的字符串操作 - 添加佔位符字符
- 6. SQL Server 2005的PDO連接字符串
- 7. SQL Server:字符串操作,Unpivoting
- 8. 從SQL Server 2005 SP3到SQL Server 2012 SP1的連接字符串
- 9. 字符長度SQL Server 2005
- 10. SQL Server Express 2005 unicode字符
- 11. SQL操作字符串
- 12. SQL中的字符串操作
- 13. SQL Server 2005中的字符集
- 14. 提取SQL SERVER 2005中的字符?
- 15. T-SQL字符串操作
- 16. 使用SQL Server中的函數進行字符串操作
- 17. SQL Server 2005中的其他語言字符串
- 18. Microsoft SQL Server 2005連接字符串中的問題!
- 19. 數值爲SQL Server 2005中的格式字符串
- 20. 將字符串轉換爲SQL Server 2005中的XML
- 21. 查找並替換SQL Server 2005中的字符串
- 22. 將日期轉換爲SQL Server 2005中的字符串
- 23. 如何連接SQL Server 2005中的兩個字符串
- 24. 如何替換SQL Server 2005中的所有字符串?
- 25. SQL Server中的字符串
- 26. SQL 2005 - 搜索字符串
- 27. SQL Server 2005中,其中有字符串比較
- 28. SQL Server 2005 SQL身份驗證連接字符串
- 29. 針對URL的SQL Server字符串操作?
- 30. 分割字符串轉換成SQL Server 2005中