标签: sql sql-server tsql
我有以下内容:
SELECT DISTINCT Left(GIFTHEADER.pID + GIFTHEADER.PID + '-' + Cast(PAYMENTDETAIL.PLINENO as Varchar),18) AS TRANSACTIONREF...
目前我的价值如下:
ABC0005953ABC0005953
我想简单地从GIFTHEADER.pID