這是我的查詢怎麼辦時,註釋行是什麼,我想插入SQL SERVER插入使用插入多行到選擇語句
insert into tbl_StockTransactions(ItemCode,TransactionDate,Narration,Docid,ReferenceNo,Qty,Price,UserId,BranchCode,StaffCode) select ItemCode,getDate(),Description,PostingDocid,'New Ref',Qty,Price,'uid','bc','sc' from tbl_PostingDetailsStock where PostingReference='A000275'
--select ItemCode,getDate(),Description,PostingDocid,'New Ref',Qty,Price,'uid','bc','sc' from tbl_PostingDetailsStock where PostingReference='A000276';
對不起,這是我想要的人 –
@EmmanuelOgoma,接受答案。 – PawelCz
@EmmanuelOgoma,是否符合您的要求,請點擊選中標記下面只是給予好評按鈕[旗它作爲接受]這個答案..在將來使用 – Vikrant