请教一个关于数据库的问题
我在asp中用conn.Execute()命令同时执行三条格式相同的插入语句(也就是同一张表,三条记录),数据库中只插入了一条,当我把这三条语句拷到查询分析器中运行时,则都可以插进去,其中一条语句如下
“insert into table1(Series,InStorageFormHeadID ,OrderPlanID,ProductID,MesureUnit,ProduceNo,DeliverQuantity,FactQuantity,PurchasePrice,CheckPrice,SellingPrice,Money,PlanCost,Quantity,OutStorageformHeadID)SELECT 3 as Series,'RKQYA20031216394' as InStorageFormHeadID,'' as orderplanID, ltrim(rtrim(' A110052109000')) as productID,BasicMeasureUnits as MesureUnit,'' as ProduceNo,1 as DeliverQuantity,9 as FactQuantity,PurchaseCost as PurchasePrice,PurchaseCost as CheckPrice,PurchaseCost as SellingPrice,PurchaseCost*9 as Money,0 as planCost,9 as Quantity,'' as OutStorageformHeadID from ProductMainDossier b where b.productid=ltrim(rtrim(' A110052109000')) ”