当前位置:Gxlcms > mysql > 用來比較兩個字符串從第幾個位置開始不相同

用來比較兩個字符串從第幾個位置開始不相同

时间:2021-07-01 10:21:17 帮助过:16人阅读

适用於Oracle資料庫的SQL Oracle SQL 字符串 select min(level) from dual where nvl(substr('字串1',level,1),' ')nvl(substr('字串2',level,1),' ') connect by level=200

适用於Oracle資料庫的SQL
Oracle SQL 字符串
  1. select min(level)
  2. from dual
  3. where nvl(substr('字串1',level,1),' ')<>nvl(substr('字串2',level,1),' ')
  4. connect by level<=200

人气教程排行