开发者_运维技巧Is there a way to easily get the column types of a query result?I read the psql documentation, but I don\'t think it supports that.Ideally, I\'d be able to get something like:
在psql中,使用1/4得到的结果是0,因为www.devze.com/它取得是整数,但是有些场景我们是需要保留小数的,还有些场景需要向上取整,或者四舍五入的。