How to suppress ".00" at the end of my datas in a column???

This is a discussion on How to suppress ".00" at the end of my datas in a column??? within the MySQL Database forums, part of the Database Forums category; Hi everybody, here is my problem. I have an entire column containing numeric data like "299.00". I ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-31-2007
Mayoutze
 
Posts: n/a
Default How to suppress ".00" at the end of my datas in a column???

Hi everybody, here is my problem.

I have an entire column containing numeric data like "299.00". I have
to suppress the ".00" at the end. As I have approximately 2000 rows
I'd be glad if you could help me...

Thank you...

Reply With Quote
  #2 (permalink)  
Old 01-31-2007
Luuk
 
Posts: n/a
Default Re: How to suppress ".00" at the end of my datas in a column???


"Mayoutze" <jonathan.maier@gmail.com> schreef in bericht
news:1170250305.550141.27000@a75g2000cwd.googlegro ups.com...
> Hi everybody, here is my problem.
>
> I have an entire column containing numeric data like "299.00". I have
> to suppress the ".00" at the end. As I have approximately 2000 rows
> I'd be glad if you could help me...
>
> Thank you...
>


read the page at:
http://ww.mysql.com/doc/refman/4.1/e...functions.html


Reply With Quote
  #3 (permalink)  
Old 01-31-2007
Captain Paralytic
 
Posts: n/a
Default Re: How to suppress ".00" at the end of my datas in a column???

On 31 Jan, 13:31, "Mayoutze" <jonathan.ma...@gmail.com> wrote:
> Hi everybody, here is my problem.
>
> I have an entire column containing numeric data like "299.00". I have
> to suppress the ".00" at the end. As I have approximately 2000 rows
> I'd be glad if you could help me...
>
> Thank you...


What is the datatype of the field?

Reply With Quote
  #4 (permalink)  
Old 01-31-2007
Mayoutze
 
Posts: n/a
Default Re: How to suppress ".00" at the end of my datas in a column???

On Jan 31, 2:43 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
wrote:
> On 31 Jan, 13:31, "Mayoutze" <jonathan.ma...@gmail.com> wrote:
>
> > Hi everybody, here is my problem.

>
> > I have an entire column containing numeric data like "299.00". I have
> > to suppress the ".00" at the end. As I have approximately 2000 rows
> > I'd be glad if you could help me...

>
> > Thank you...

>
> What is the datatype of the field?


the datatype is decimal...

Reply With Quote
  #5 (permalink)  
Old 01-31-2007
Captain Paralytic
 
Posts: n/a
Default Re: How to suppress ".00" at the end of my datas in a column???

On 31 Jan, 14:56, "Mayoutze" <jonathan.ma...@gmail.com> wrote:
> On Jan 31, 2:43 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
> wrote:
>
> > On 31 Jan, 13:31, "Mayoutze" <jonathan.ma...@gmail.com> wrote:

>
> > > Hi everybody, here is my problem.

>
> > > I have an entire column containing numeric data like "299.00". I have
> > > to suppress the ".00" at the end. As I have approximately 2000 rows
> > > I'd be glad if you could help me...

>
> > > Thank you...

>
> > What is the datatype of the field?

>
> the datatype is decimal...


So you can either use FLOOR (as Luuk was sort of suggesting) or CAST

Reply With Quote
  #6 (permalink)  
Old 01-31-2007
Mayoutze
 
Posts: n/a
Default Re: How to suppress ".00" at the end of my datas in a column???

On Jan 31, 4:27 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
wrote:
> On 31 Jan, 14:56, "Mayoutze" <jonathan.ma...@gmail.com> wrote:
>
>
>
> > On Jan 31, 2:43 pm, "Captain Paralytic" <paul_laut...@yahoo.com>
> > wrote:

>
> > > On 31 Jan, 13:31, "Mayoutze" <jonathan.ma...@gmail.com> wrote:

>
> > > > Hi everybody, here is my problem.

>
> > > > I have an entire column containing numeric data like "299.00". I have
> > > > to suppress the ".00" at the end. As I have approximately 2000 rows
> > > > I'd be glad if you could help me...

>
> > > > Thank you...

>
> > > What is the datatype of the field?

>
> > the datatype is decimal...

>
> So you can either use FLOOR (as Luuk was sort of suggesting) or CAST


I'll try that!!! Thank you :-)

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0