아래 표의 열이 내 테이블에 있습니다. 당신이 DBTimeStamp라는 값이있다 볼 수 있습니다 위의 DB_Attribute 열에서 열의 날짜 값을 새 열로 나누는 데 도움이 필요합니다.
DB_Attribute
Attributes: ServerId=300000049436:DBCOP01; CountryCode=HK; Environment=LIVE;
[email protected]; ServerStatus=ACTIVE; ViewPointName=DBA HTSA HASE;
LifecycleStatus=Active; assetGroup=bcoinst; BusinessCriticality=TIER 2; GSDServiceCount=1;
HSBCLocation=HK HHQ; DBCount=1; GSDServiceName=HASE-BCO; LastChange=2017/10/29 20:00:01; DBTimeStamp=2017/10/29
Attributes: ViewPointName=DBA HTSA - DB2; BusinessCriticality=TIER 2;
ServerId=300000027610:VNPRD1HF; HSBCLocation=HK TKO; Environment=LIVE; LifecycleStatus=Active;
assetGroup=ap4vnpu1; DBCount=1; GSDServiceCount=2; DBTimeStamp=2017/10/29;
GSDServiceName=VNM AAPS4; ServerStatus=ACTIVE; LastChange=2017/10/29 20:00:01; [email protected]; CountryCode=HK
Attributes: ServerId=300000028881:KWTAS; CountryCode=HK; DBTimeStamp=2017/10/29;
LastChange=2017/10/29 20:00:01; LifecycleStatus=Active; DBCount=1; HSBCLocation=HK TKO;
ViewPointName=DBA HTSA - DB2; Environment=LIVE; BusinessCriticality=TIER 2; GSDServiceName=GWIS KWT;
ServerStatus=ACTIVE; [email protected]; GSDServiceCount=1
Attributes: DBTimeStamp=2017/07/12; LifecycleStatus=Active; DBCount=3;
Environment=LIVE; LastChange=2017/07/13 20:00:02; ServerId=300000027589:VNVNP3JL;
BusinessCriticality=TIER 1; GSDServiceCount=0; ServerStatus=ACTIVE; CountryCode=HK; HSBCLocation=HK TKO;
GSDServiceName=VNM HFE2; ViewPointName=DBA HTSA - DB2; [email protected]
Attributes: ServerStatus=ACTIVE; Environment=LIVE; GSDServiceName=JPM HFE2;
LastChange=2017/10/29 20:00:01; ServerId=300000027592:JPJPP3HF; LifecycleStatus=Active;
[email protected]; BusinessCriticality=TIER 2; GSDServiceCount=1; HSBCLocation=HK TKO;
CountryCode=HK; DBCount=3; ViewPointName=DBA HTSA - DB2; DBTimeStamp=2017/10/29
지금 내 요구 사항은 나는 새 열로
DBTimeStamp을 넣어 쿼리를 찾고 있어요입니다. 오라클 시도 사용 기능 REGEXP_SUBSTR에서
감사합니다,
카스
MS SQL Server 또는 Oracle을 사용하고 있습니까? 관련되지 않은 제품에 태그를 지정하지 마십시오. – jarlh
샘플 테이블 데이터입니까? 예상되는 결과는 무엇입니까? – jarlh
무엇을 시도 했습니까? 현재 쿼리 시도를 보여주십시오. – jarlh