Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Isnumeric Bug
Message
 
 
À
14/09/2004 16:17:32
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00942046
Message ID:
00942154
Vues:
34
Jim,

It only means that '-' cannot be converted to the real data type. It can be converted to int, though. Try
select cast('-' as int)
>
>put '12.00' in this table.
>
>Run following query.
>
>select cast(test as real) from table2
>
>It will return 12.00.
>
>add '-' in this table.
>
>When you run laat query, you will get error.
>
>
>Server: Msg 8114, Level 16, State 5, Line 3
>Error converting data type varchar to real.
>
>That means '-' is not numeric
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform