Unix Technical Forum

Europe syntax for desimal

This is a discussion on Europe syntax for desimal within the SQL Server forums, part of the Microsoft SQL Server category; --> What is the easiest way to solve "," problem Fields A, B and C are float-values INSERT INTO Table ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 02:42 PM
Kaitsu
 
Posts: n/a
Default Europe syntax for desimal

What is the easiest way to solve "," problem

Fields A, B and C are float-values

INSERT INTO Table
(A, B, C)
VALUES (1,2,3)

This is ok, but. How can I insert values A=1,1 B=2,2 C=-11,123

This is not working

INSERT INTO Table
(A, B, C)
VALUES (1,1, 2,2 -11,123)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 02:42 PM
Dan Guzman
 
Posts: n/a
Default Re: Europe syntax for desimal

> This is ok, but. How can I insert values A=1,1 B=2,2 C=-11,123
>
> This is not working
>
> INSERT INTO Table
> (A, B, C)
> VALUES (1,1, 2,2 -11,123)


You need to specify a decimal point as the decimal separator in SQL
literals:

INSERT INTO Table
(A, B, C)
VALUES (1.1, 2.2, 11.123)


--
Hope this helps.

Dan Guzman
SQL Server MVP

"Kaitsu" <kaitsu@luukku.com> wrote in message
news:mH9Lh.84$MA3.36@read3.inet.fi...
> What is the easiest way to solve "," problem
>
> Fields A, B and C are float-values
>
> INSERT INTO Table
> (A, B, C)
> VALUES (1,2,3)
>
> This is ok, but. How can I insert values A=1,1 B=2,2 C=-11,123
>
> This is not working
>
> INSERT INTO Table
> (A, B, C)
> VALUES (1,1, 2,2 -11,123)
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com