0

文字列からすべての文字を削除するか、数値を抽出して一時テーブルに格納する必要があります。

これが私がこれまでに持っているものです:

drop table if exists T_Stores;
create temporary table T_Stores(
    store varchar(50)
);


insert into T_Stores
select p.pev_nms from bsgtran.pev p where p.pev_nms regexp '(new|relo|under).*store'
;

現在、値を列に保存しp.pev_nmsていstoreます。New Store 00001これは、多くの異なる方法またはNew Store 00001 CAまたはNew Store 00001 1st St., New York, NYその他の多くの異なる組み合わせに見えます。文字列から 5 桁の文字を抽出するにはどうすればよいですか?

4

0 に答える 0