ZECA Posted November 17, 2011 Report Share Posted November 17, 2011 Tenho os seguintes dados: tabela - clientes campos da tabela CGC e CGCPURO Funcao - SEMPONTO O quero fazer é o seguintes Gravar em todos os campos CGCPURO e CGC com somente os numeros Seria mais o menos assim em dbf sele clientes DO WHILE !EOF() replace all CGCPURO with SEMPONTO(CGC) SKIP ENDDO tudo isso em SQL PURO Alguem tem alguma idéia ? Sds José Carlos - ZECA fwh612(Free)-clipper52e-blinker 7.0 - six 3.02 - Windows XP Quote Link to comment Share on other sites More sharing options...
ZECA Posted November 17, 2011 Author Report Share Posted November 17, 2011 Tenho os seguintes dados: tabela - clientes campos da tabela CGC e CGCPURO Funcao - SEMPONTO O quero fazer é o seguintes Gravar em todos os campos CGCPURO e CGC com somente os numeros Seria mais o menos assim em dbf sele clientes DO WHILE !EOF() replace all CGCPURO with SEMPONTO(CGC) SKIP ENDDO tudo isso em SQL PURO Alguem tem alguma idéia ? Sds José Carlos - ZECA fwh612(Free)-clipper52e-blinker 7.0 - six 3.02 - Windows XP Quote Link to comment Share on other sites More sharing options...
Luisão Posted November 17, 2011 Report Share Posted November 17, 2011 Isso é para funcionar Update clientes Set CGCPURO = Replace(CGC,'.',''); Luis Fernando Jr. (Luisão) -- FWH8.01 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY luis.fernando.majr@gmail.com juninho_luisao@hotmail.com (msn) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.