Oracle is similar to find_in_set comma-separated query multiple data

Many people will FUNCTIONcome to imitate, but it is not necessary.

You can use to instr (',' || ANCESTORS || ',', ',427,') != 0search for a single item, or you can use to regexp_instr (',' || ANCESTORS || ',', ',427,|,381,') != 0search for multiple items.

おすすめ

転載: blog.csdn.net/duanluan/article/details/123893326