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)
sql查詢出來a表的某個(gè)字段插入到b表中,同時(shí)向a表插入別的數(shù)據(jù)
幕布斯6054654
2018-12-07 09:14:53