摘要:
分割多个字段,然后拼接在一起 SELECT pg.vchcode,pg.ptypeid,pg.ktypeid,pg.dlyorder,pg.pgdetail,pg.IsCut,(CAST(substring(pg.pgQtyStr,b.number,charindex('ǒǜ' ,pg.pgQtyS 阅读全文
摘要:
返回结果 select [Id] CkeckID,'' [atypeId],'' [btypeId],@etypeid [etypeId],@szKTypeID [ktypeId],[sltypeId],'' [ktypeId2],stock.Ptypeid [PtypeId], abs(stock 阅读全文
摘要:
关联多表 更新 update pggoodsstocks set pgQty = g.pgQty + bak.pgQty from pggoodsstocks g, (select pgDetail, CAST(round(CAST(sum(Qty) AS NUMERIC(22,10))/CAST( 阅读全文
摘要:
begin .... end 内 定义的变量, begin ... end 外也可以使用 阅读全文