Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
执行以下操作的 SQL 语句是什么?有点卡在这里*从头开始
成为
select substring(Value, charindex(' - ', Value) + 2, len(Value)) from MyTable
SQL 小提琴示例
select substring(Value, charindex(' - ', Value) + 2, (len(Value) - charindex(' - ', Value) + 1) ) from MyTable