Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert into table values select - but change 1 field
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Insert into table values select - but change 1 field
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01531682
Message ID:
01531682
Vues:
104
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform