我有两个显示货币的下拉列表:
1:Euro 1:Euro
2:Dollar 2:Dollar
3:Pound 3:Pound
还有一张桌子
CurrencyID CurrencyName Rupee Euro Dollar Pound
----------- ------------ ---------------------- ---------------------- ---------------------- ----------------------
1 Rupee 1 0.008 0.009 0.007
2 Euro 121.3 1 1.08 0.84
3 Dollar 111.4 0.91 1 0.77
4 Pound 143.6 1.18 1.28 1
是否可以使用insert statment和ddl.Text插入数据?
类似于,`INSERT INTO表WHERE ddl.SelectedItem.Text = Currencyname和ddl2.SelectedItem =(other row)
答案 0 :(得分:0)
UPDATE CurrencyTbl
SET Euro = '1'
WHERE CurrencyName='Euro';