文字列からすべての文字を削除するか、数値を抽出して一時テーブルに格納する必要があります。
これが私がこれまでに持っているものです:
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 桁の文字を抽出するにはどうすればよいですか?