Fórum trocar o primeiro digito #46963
24/09/2004
0
o codigo esta assim A1002
A1003
A1004
eu quero trocar esse A por 1.
desde de ja agradeço.
uso firebird 1.5
Rjcerri
Curtir tópico
+ 0Posts
24/09/2004
Afarias
T+
Gostei + 0
27/09/2004
Rjcerri
Gostei + 0
27/09/2004
Rjcerri
Gostei + 0
27/09/2004
Vinicius2k
update TABELA set CODIGO = ´1´ || substring(CODIGO from 2 for 4) where substring(CODIGO from 1 for 1) = ´A´; update TABELA set CODIGO = ´2´ || substring(CODIGO from 2 for 4) where substring(CODIGO from 1 for 1) = ´B´; ...
e assim por diante...
T+
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)