Subject Re: [firebird-support] Saving string value with leading zeros?
Author Martijn Tonies
> I have a field in a table designated as a char(2) type and I am trying
> 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"?

I guess this should work:

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