string[] aa = new string[] { "700011", "700012", "100010" };有這么一組數字對應表里的一列資料
我想插入這陣列里的資料對應的列,

就是插入條碼號對應的出貨卷號應該怎么寫
PS:要是insert into 能加where就好了
uj5u.com熱心網友回復:
誰說不能insert into加where的這樣子 insert into table(欄位1,欄位2) value (select 欄位1,欄位2 from table2 where 1=1 )
uj5u.com熱心網友回復:
你這個已有條碼號 行資料,用 Update啊uj5u.com熱心網友回復:
你這個要寫update 陳述句PS insert into 后面的select 其實就是條件不要那么死板。uj5u.com熱心網友回復:
insert into 表(條碼號,輸入卷號,累計卷號,出貨卷號)select 條碼號,輸入卷號,累計卷號,出貨卷號 from 表 where 條碼號 in ("700011", "700012", "100010")
uj5u.com熱心網友回復:
insert into table(出庫卷號)select 出庫卷號 from tableA where tableA.條碼號='xxxx'
uj5u.com熱心網友回復:
改成類不就好了,為什么要用陣列?uj5u.com熱心網友回復:
各位老師,不好意思沒有講清楚。陣列我是為了做實驗的,正常情況下是一個條碼采集器,采集條碼然后放到richbox里面。我想通過獲取的條形碼然后對應的出貨卷號從1開始遞增。直到這批貨出完,下批貨繼續從1開始轉載請註明出處,本文鏈接:https://www.uj5u.com/net/225214.html
標籤:C#
