我有我的SQL Server表包含文本列,比方說,一個列有如下文字:SQL Server中刪除一切從第二次出現到結束
"this is a test that was made the year 2012 cause in the year 2013 we was down"
我需要的是檢查是否一年以上發生;如果是,該文本應更新爲:
"this is a test that was made the year 2012 cause in the "
所以我需要把一切都在第二occurence之前刪除一切從最後一次出現到結束
任何幫助嗎?
什麼範圍的幾年將是有效的。 1973年有效嗎? 2199是否有效? –