Behold, the power of BableFish...
Hello I have a problem of migration of data with java yt the problem not if
this in java or oracle, that is the final destiny of my data.
I comment to you I have a table in SQL server whose fields that they give me
problem are:
COORDX float 8 1
COORDY float 8 1
the data type which I have in SQL server is:
527066,231771941 4743726.36262111
526367.429694461 4745026,71988168
In oracle I have declared in a table these fields like:
COORDX NUMBER (8,10)
COORDY NUMBER (8,10)
When I gather with java of SQL server I do it from resulset with:
rs.getDouble("COORDX")
rs.getDouble("COORDY")
I collect data of the type, doing a System.out.println:
COORDX=527066.2317719407, COORDY=4743726.362621108
when mer this in oracle with the following thing gives an error me
SQL> UPDATE TABLE SETH POR_CL_POR=80105900124250, COORDX=527066.2317719407;
UPDATE TABLE SETH POR_CL_POR=80105900124250, COORDX=527066.2317719407
*
ERROR in line 1:
ORA-01438: value greater than the one than allows the precision specified
for this column
And if I do, that is radically smaller I even number:
SQL> UPDATE T56BAAT05 SETH POR_CL_POR=80105900124250, COORDX=52.7407; UPDATE
T56BAAT05 SETH POR_CL_POR=80105900124250, COORDX=52.7407
* ERROR in line 1:
ORA-01438: value greater than the one than allows the precision specified
for this column it gives the same error me.
Ayudais to solve this please to me?
On 8/30/07, Miren Urkixo <[EMAIL PROTECTED]> wrote:
>
> Hola tengo un problema de migracion de datos con java yt el problema no se
> si esta en java o en oracle, que es el destino final de mis datos.
>
> Os comento. tengo una tabla en sql server cuyos campos que me dan problema
> son:
> COORDX float 8 1
> COORDY float 8 1
>
>
> el tipo de dato que tengo en sql server es:
> 527066,231771941 4743726,36262111
> 526367,429694461 4745026,71988168
>
> En oracle he declarado en una tabla estos campos como:
> COORDX NUMBER (8,10)
> COORDY NUMBER (8,10)
>
> Cuando recojo con java de sql server lo hago desde un resulset con:
> rs.getDouble("COORDX")
> rs.getDouble("COORDY")
>
> obtengo datos del tipo, haciendo un System.out.println:
> COORDX=527066.2317719407, COORDY=4743726.362621108
>
> al mer esto en oracle con lo siguiente me da un error
>
> SQL> UPDATE TABLA SET POR_CL_POR=80105900124250, COORDX=527066.2317719407;
> UPDATE TABLA SET POR_CL_POR=80105900124250, COORDX=527066.2317719407
> *
> ERROR en línea 1:
> ORA-01438: valor mayor que el que permite la precisión especificada para
> esta
> columna
>
> E incluso si hago, que es radicalmente menor el numero:
> SQL> UPDATE T56BAAT05 SET POR_CL_POR=80105900124250, COORDX=52.7407;
> UPDATE T56BAAT05 SET POR_CL_POR=80105900124250, COORDX=52.7407
> *
> ERROR en línea 1:
> ORA-01438: valor mayor que el que permite la precisión especificada para
> esta
> columna
>
>
> me da el mismo error.
>
> Me ayudais a solucionar esto por favor?
>
>
>