sql server - insert table1 of col into table2 -


I have two tables named 'BB' col1 = bid (int autoincremented) col2 = max_amt (decimal) What else do I want with the other table 'BBC' col1 = bidding (int) and col2 = clm (varchar) that my BB.bd = bbcbd and my BBCCLM is visible next to each other. For example: BBC table:

I want to:

  bid CLM 8 333   

I'm getting:

  Bid CLM 8 333   

Question:

  INSERT [BBC] quote, CLM) SELECT [BB] .bid from [ Bb] where not present (choose from [BBC] WHERE [BBC] .bid = [BB.BED]   

any advice ???

It seems that you have 2 records in the BBC table - one of these bidding columns has data and Surrey's data is in the CLM column. If you want to show both fields in the same record, you can insert one such way:

  BBC (bid, CLM) values INSERT (8, '333')    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -