Avatar of Amanda Walshaw
Amanda WalshawFlag for Australia asked on

inserting text fields sql database table

The accounting team have decided to change 150 descriptions of their chart of accounts.
the chart of account remains the same etc only the description changes.
I was thinking an insert statement would be the best way to go

would you create a table with the changes required then do an insert
SELECT column_name,column_name
 FROM table_name
 WHERE column_name operator value;

see example attached
Microsoft SQL ServerMicrosoft SQL Server 2008

Avatar of undefined
Last Comment
Scott Pletcher

8/22/2022 - Mon

It would probably be an update statement.

First add an additional field to the existing table, say, description.


Update yourExistingTable

Set description = 'value' where accountCode='accoutncodeValue'

It will be tedious but that's the only I can ensure desciptions go to correct accountCode value.
Scott Pletcher

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Your help has saved me hundreds of hours of internet surfing.