Quantcast
Channel: Update + Select com vários campos
Viewing all articles
Browse latest Browse all 3

Update + Select com vários campos

0
0

Ola.....

 

Tem como eu utilizar um único select neste Update?

Update tabela1set campoA = (select campoA from tabela2 where tabela1.campoZ = tabela2.campoZ),
campoB = (select campoB from tabela2 where tabela1.campoZ = tabela2.campoZ),
campoC = (select campoC from tabela2 where tabela1.campoZ = tabela2.campoZ) <br/>where tabela1.CampoX = 111
Obrigado.....


Viewing all articles
Browse latest Browse all 3

Latest Images





Latest Images