lets say I have table Book and columns are: color and name,
I want to update book's color to orange if name of that book is more than 5 characters long..of course update of every book in table like that...so any ideas ?sorry for bad English.
lets say I have table Book and columns are: color and name,
I want to update book's color to orange if name of that book is more than 5 characters long..of course update of every book in table like that...so any ideas ?sorry for bad English.
update book set color = 'ORANGE' where length(name) > 5;
VKP is right, you should always show what you have tried. Here is your answer to your homework.
Update Book
Set Color = 'Orange'
Where Length(name) > 5