I want to insert records in a table with a column having same value for all the records being inserted.
How to do it without changing table structure.
Insert into tableA(clientid,no_of_users)
select clientid
from tableB
I want no-of_users =3 for all the records
You can use a DEFAULT Constraint for this, read about it on MSDN.
Without changeing the table structure, just simple use this:
With using this statement, you can always think about the
INSERTas the output what you would like to see of yourSELECT.