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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

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

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

幕布斯6054654 2018-12-07 09:14:53
sql查詢出來a表的某個字段插入到b表中,同時向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這個是查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 ? 這樣寫不對。求指點
查看完整描述

4 回答

?
神不在的星期二

TA貢獻1963條經(jīng)驗 獲得超6個贊

把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'
查看完整回答
反對 回復 2019-01-07
?
慕斯王

TA貢獻1864條經(jīng)驗 獲得超2個贊

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
查看完整回答
反對 回復 2019-01-07
?
慕斯709654

TA貢獻1840條經(jīng)驗 獲得超5個贊

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)
查看完整回答
反對 回復 2019-01-07
?
蕭十郎

TA貢獻1815條經(jīng)驗 獲得超13個贊

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

這下應該行了

查看完整回答
反對 回復 2019-01-07
  • 4 回答
  • 0 關注
  • 1197 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號