On 2010-03-10, Navanethan Muthusamy <navanethanmca@gmail.com> wrote: > --0016e68e9a5510f1f504816d1fcb > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I am using Postgresql 8.4, Can you tell me How Can I use Money data type? it's best not to, "money" is a fixed-point fromat based on 32 bitintegers, abn it's deprecated. > I want to store the money and retrieve. Please give me idea to work on that. for that you use a bank, not a database :) > I am using Java with Postgresql, I have tried java.math.BigDecimal with > Money, but its giving error. (Its asking me to do the casing) ??? it's better to use some sort of numeric
<br /><blockquote cite="mid:hnaare$jh$1@reversiblemaps.ath.cx" type="cite"><pre wrap=""> it's better to use some sort of numeric </pre></blockquote><font face="Courier New, Courier, monospace">or integer and storeamounts of cents, not dollars. </font><br />
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера