Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert same column value into a table

Status
Not open for further replies.

jcs1953

IS-IT--Management
Nov 28, 2007
53
US
I have a table in which I added a new column named test_name. I need to populate all rows in this new column with the same value (Sedrate). How can I do this?
Thanks.
 
One of the ways would be

UPDATE myTable SET Test_Name = 'Sedrate'

You can also specify default value for the column.

However, is there any sense to have a column with the same information in the whole table?
 
Not really, except in my case it was the easiest way out I could think of. The table is small and will never have data added. I have two db, oracle and mssql. I have to combine the data from the two to display on a internal webpage. The oracle db table has the test name and the mssql table didn't.
Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top