得到一個特定的子我有了所謂的「細節」爲一列的Orders表:如何從一列在SQL
Contact ID: A18YTX7GWEJRU8 City/Site and Site Name: Orlando - Orlando (UFL4) Date of Call (MM/DD/YYYY): 01/23/2017 Time of Call (Local Time): 16:44 Order ID(s): 112-0654231-9637802 Call Summary: Cx did not receive. Order marked as delivered to doorstep at 16:27 created by flx-cstech on behalf of sssmiley.
有該列不同的單元格值。也可能是這樣的:
Short Description: Dry Ice Retrieval Please enter the following information for the site ops to pick up the dry ice from the customer: Contact ID:AD3R60PA1QCCF Order ID:112-6254812-3186644
或其他任何東西。
我只想提取它的Order ID(s): 112-0654231-9637802
部分。我怎麼做?
應該能夠使用REGEXP_LIKE – maSTAShuFu
請舉例嗎?我看到的所有示例在where子句中使用regexp_like,但我只是想將order_id另存爲另一列 – Arman
使用regexp_like並將其設置爲substr(起始位置)並獲取regexp_like「Call Summary」,並將此點設置爲結束位置。 – maSTAShuFu