Update Multiple Columns

Asked

Viewed 3,485 times

0

I have the following situation, I need to update the table SB1300 in the fields B1_DESC and B1_CODBAR for several lines.

inserir a descrição da imagem aqui

The Where will be the B1_XCODORI

I can do it in the same query?

1 answer

1

Yes you can, your update statement would look like this

update SB1300 
set B1_DESC = 'novo valor', B1_CODBAR = 'novo valor'
where B1_XCODORI = /*sua condição*/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.