Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert into table values select - but change 1 field
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Insert into table values select - but change 1 field
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01531682
Message ID:
01531682
Views:
103
Hi all
In a sql table, i would like to insert a subset but changing the value in just 1 field.
I have a table with fields field1, field2, field3. I would like to select all rows with value 5 in field1, and insert the result rowset but changing the value of field1 to 6 prior to inserting. Is it doable in one insert command?

Thanks
Jaime
Why do programs stop working correctly as soon as you leave the Fox?
Next
Reply
Map
View

Click here to load this message in the networking platform