Get the App
SLTechnology News&Howtos  ›  Database  › 

The method of dividing query data according to commas in Oracle field

Shulou Source: shulou.com Published: 2022-06-01 04:38:32 10月01日 Update

The requirement is that the values stored in a field in the table are separated by commas, requiring that the data can be checked out based on each separated value, but you cannot use a like query.

The data goes like this:

The sql of the query is as follows:

Select * from (select guid, regexp_substr (st_responsible,'[^,] +', 1, level) responsible from tt_cancle_responsible connect by level

Tags: Queries data fields commas methods questions results websites tables requirements storage help support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Huawei Microsoft Shulou Technology OPPO Reno