Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ZEROFILL

 
   Database Help (Home) -> mySQL RSS
Related Topics:
Best way to issue hundreds of inserts/updates??? - Using mysql 4.0.23- What is the best way to execute several (hundreds of) inserts and updates? Rather than issuing tons of inserts and updates, can I send the strings to a text file and then have mysql do them all?? IE : query.txt insert..

MySQL freezes, brings XP machine to a grinding halt - I've been using MySQL for a while for fairly light database on my XP machine. I am just starting a new project and have some big problems with MySQL today both on my office machine and at home where running a

login as user 'root' but do not have root privlages and my.. - Hi gang: I'm a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it doesn't recognize me being logged in as root (via..

FLUSH TABLES hangs if table is locked - Using FLUSH TABLES via the C query API hangs if the table is locked already. That is to say, nothing prevents me from running a LOCK TABLES twice; it won't tell me already locked, don't try to run a Anyone know how to find..

Tool to convert DDL in graphical diagram? - Does anyone know of a tool that will create a graphical diagram from a DDL (SQL create script)? a free tool. Thanks, A
Next:  Telnet question  
Author Message
Khazret Sapenov

External


Since: May 01, 2004
Posts: 2



(Msg. 1) Posted: Tue Feb 08, 2005 3:18 pm
Post subject: ZEROFILL
Archived from groups: mailing>database>mysql (more info?)

Hi,
What is the practical use of ZEROFILL in your case?

regards,
Khaz

 >> Stay informed about: ZEROFILL 
Back to top
Login to vote
Bill Karwin1

External


Since: Jun 17, 2004
Posts: 42



(Msg. 2) Posted: Tue Feb 08, 2005 3:18 pm
Post subject: Re: ZEROFILL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Khazret Sapenov wrote:
 > What is the practical use of ZEROFILL in your case?

I have not had a need to use that feature in my projects, but sometimes
people have an integer field that must have uniform length, so they
prefer to have the leading portion fill with zeroes.

For instance:
<a style='text-decoration: underline;' href="http://groups-beta.google.com/group/mailing.database.mysql/browse_thread/thread/44090b6cac8da980/" target="_blank">http://groups-beta.google.com/group/mailing.database.mysql/browse_thre...thread/</a>

Regards,
Bill K.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ZEROFILL 
Back to top
Login to vote
Khazret Sapenov

External


Since: May 01, 2004
Posts: 2



(Msg. 3) Posted: Wed Feb 09, 2005 10:40 am
Post subject: Re: ZEROFILL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bill,
I have read the link, however it's unclear what is the "specific reason".
Anyway thank you for your time.

regards,
Khazret Sapenov

"Bill Karwin" <bill.DeleteThis@karwin.com> wrote in message
news:cub4ol02ksa@enews3.newsguy.com...
 > Khazret Sapenov wrote:
  > > What is the practical use of ZEROFILL in your case?
 >
 > I have not had a need to use that feature in my projects, but sometimes
 > people have an integer field that must have uniform length, so they
 > prefer to have the leading portion fill with zeroes.
 >
 > For instance:
 >
<a style='text-decoration: underline;' href="http://groups-beta.google.com/group/mailing.database.mysql/browse_thread/thread/44090b6cac8da980/" target="_blank">http://groups-beta.google.com/group/mailing.database.mysql/browse_thre...thread/</a>
 >
 > Regards,
 > Bill K.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ZEROFILL 
Back to top
Login to vote
Bill Karwin1

External


Since: Jun 17, 2004
Posts: 42



(Msg. 4) Posted: Wed Feb 09, 2005 12:54 pm
Post subject: Re: ZEROFILL [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Khazret Sapenov wrote:
 > I have read the link, however it's unclear what is the "specific reason".

The link just demonstrates that there exists a person who has that
requirement to pad integers with zeroes, and the ZEROFILL attribute was
the solution.

I think it's just a convenience. A programmer could format the value
that way after fetching it from the database, but apparently it's a
common enough task that MySQL can do it for you if you need it.

As for why someone would want this, it can help in some documents to
make integers of uniform length, so that they align with each other
regardless of being right- or left-justified.

Regards,
Bill K.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: ZEROFILL 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> mySQL All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]