How to UPDATE a specific column in SQL?

Query By: SHIVAM SINGH

V

Varun

To update a specific column in a table we must need an identity with where clause and we can set specific column value according to the below statement. 

update table_name set column_name = new_value where identity_column_name = value

where - 

column_name is the name of a specific column whose value you want to update.

identity_column_name is the name of a column in the same row which works as an identity for example id, phone, email etc.

1 votes

S

Sravani

Update tablename set column1=expression1,column2=expression2 where condition=Id

0 votes

U

uzma anjum

Alter tablename alter columnname <datatype><size>

0 votes

K

Katla Srilaxmi

Update table_name 

set column=value 1,column=value 2.....

where condition;

0 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)