【发布时间】:2018-12-13 18:35:06
【问题描述】:
select * from rest where url like 'https://%.sureshchitturi.com:444/%/%';
我可以使用上面的 where 获取数据,但我想在 select 语句中使用一些东西来获取所有数据,直到第四个 '/' 符号其余不需要建议我使用一些函数来使其工作
sample
Articles/Search/ArtMID/2681/ArticleID/2218/Diet.aspx
OurStory/boot/food/street/MeettheFoodieandtheMD.aspx
TheFood/OurMenu.aspx/abc/def/abbac
output
Articles/Search/ArtMID/2681
OurStory/boot/food/street
TheFood/OurMenu.aspx/abc/def
谢谢
【问题讨论】: