Re: using string instead of int
- From: "Patrice" <http://www.chez.com/scribe/>
- Date: Tue, 18 Mar 2008 19:10:07 +0100
And the value in the table is ? IMO it's best to always work with the
intended type (that is int if your database column is an int)....
"mavrick_101" <mavrick101@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message
de news: 209EF7DD-B52E-4F4C-8F7B-0BF766F3035F@xxxxxxxxxxxxxxxx
Often in code, when retrieving a value from table where I don't have to do
any math calculations, I store the value in a string variable instead of
converting to an int and then storing in an int variable.
Do you guys see anything wrong with this practice?
.
- Follow-Ups:
- Re: using string instead of int
- From: Stan
- Re: using string instead of int
- Prev by Date: Re: Advantages of using the Visual Studio Development Server (VSDS) compared to IIS
- Next by Date: Re: using string instead of int
- Previous by thread: Make content in <td> scroll
- Next by thread: Re: using string instead of int
- Index(es):
Relevant Pages
|