Subject | Re: [firebird-support] Saving string value with leading zeros? |
---|---|
Author | Martijn Tonies |
Post date | 2006-03-06T14:03Z |
> I have a field in a table designated as a char(2) type and I am tryingI guess this should work:
> to update it with a value of "09", but when I do this it, the value
> written into the table is just "9" i.e. the leading zero is removed.
>
> How can I retain the string value as "09"?
update mytable set mycol = '09'
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com