第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

sql查詢出來a表的某個(gè)字段插入到b表中,同時(shí)向a表插入別的數(shù)據(jù)

sql查詢出來a表的某個(gè)字段插入到b表中,同時(shí)向a表插入別的數(shù)據(jù)

幕布斯6054654 2018-12-07 09:14:53
sql查詢出來a表的某個(gè)字段插入到b表中,同時(shí)向a表插入別的數(shù)據(jù) ? RefundInfo_Config 字段 類型 為空 ID Int 否 AccountId Bigint 否 MaxAmount Int 否 MinAmount Int 否 RefundCount Int 否 Rate Int 否 WeekDay Int 否 ? ? ? ?select distinct accountId from B_AccBankPOS_Share where createtime>=2012-6-1這個(gè)是查a表的 想把查詢出來的數(shù)據(jù)加上1,10000,500,1,80,5插入到b表中 insert into RefundInfo_Config (AccountId,MaxAmount,MinAmount,RefundCount,Rate,[WeekDay]) select distinct accountId from B_AccBankPOS_Share where createtime>=2012-6-1,10000,500,1,80,5 ? 這樣寫不對。求指點(diǎn)
查看完整描述

4 回答

?
神不在的星期二

TA貢獻(xiàn)1963條經(jīng)驗(yàn) 獲得超6個(gè)贊

把SQL語句改為:

insert into RefundInfo_Config (AccountId,MaxAmount,MinAmount,RefundCount,Rate,[WeekDay]) 
select distinct accountId,10000,500,1,80,5 
from B_AccBankPOS_Share 
where createtime>='2012-6-1'
查看完整回答
反對 回復(fù) 2019-01-07
?
慕斯王

TA貢獻(xiàn)1864條經(jīng)驗(yàn) 獲得超2個(gè)贊

1 insert into RefundInfo_Config (AccountId,MaxAmount,MinAmount,RefundCount,Rate,[WeekDay])
values (select distinct accountId from B_AccBankPOS_Share where createtime>=2012-6-1),
10000,500,1,80,5
查看完整回答
反對 回復(fù) 2019-01-07
?
慕斯709654

TA貢獻(xiàn)1840條經(jīng)驗(yàn) 獲得超5個(gè)贊

View Code
 insert into RefundInfo_Config (AccountId,MaxAmount,MinAmount,RefundCount,Rate,[WeekDay]) values((select distinct accountId from B_AccBankPOS_Share where createtime>=2012-6-1), 10000,500,1,80,5)
查看完整回答
反對 回復(fù) 2019-01-07
?
蕭十郎

TA貢獻(xiàn)1815條經(jīng)驗(yàn) 獲得超13個(gè)贊

insert into RefundInfo_Config (AccountId,MaxAmount,MinAmount,RefundCount,Rate,[WeekDay]) 
select distinct accountId,10000,500,1,80,5 from B_AccBankPOS_Share where createtime>=2012-6-1

這下應(yīng)該行了

查看完整回答
反對 回復(fù) 2019-01-07
  • 4 回答
  • 0 關(guān)注
  • 1182 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)