Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL SELECT or INSERT INTO query

I'm working with SQL Server 2000. I need to take the results from one column (VALIMIT) and insert them into another column (VALIMIT2012) in the same table (lending_limits).

My question is do I need to do a SELECT query first, or do I just start with an INSERT INTO query and what the proper syntax would be for the INSERT INTO query.

like image 511
post.72 Avatar asked Dec 04 '25 13:12

post.72


1 Answers

You can do this with an UPDATE statement:

update lending_limits
set VALIMIT2012 = VALIMIT
like image 59
D'Arcy Rittich Avatar answered Dec 07 '25 01:12

D'Arcy Rittich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!