値を抽出しようとしている挿入スクリプトがあります
ここにスクリプトがあります
@scriptprod=INSERT intoProducts_Details
( VAL_ID ,
ProductID ,
SONumber ,
ProductTypeName ,
QuantitySold ,
Hours ,
Comments ,
Synch_Status ,
ProdID
)
VALUES ( 'V420131010213137TEST' ,
'186' ,
'5000000010' ,
'Bundled Anesthesia' ,
'9' ,
'12.00' ,
'test anas' ,
'' ,
'PD20131011121909999000'
)
のように使ってみた
substring(
@scriptprod,
charindex('PD20',@scriptprod,0),
LEN(@scriptprod)-CHARINDEX('PD20',@scriptprod,0)-1)
助けてください