Личный кабинет
Укажите e-mail, на который будет выслан код восстановления пароля.
На указанный вами адрес e-mail был выслан код подтверждения аккаунта. Введите полученный код для продолжения:
Введите новый пароль два раза:
thanks man!so the syntax in [fielname]::[datatype]?From: thom@linux.comDate: Mon, 7 Sep 2015 11:27:46 +0100Subject: Re: [NOVICE] Changing Data TypesTo: m_frost2010@hotmail.comCC: tgl@sss.pgh.pa.us; pgsql-novice@postgresql.orgOn 7 September 2015 at 11:20, Mike Frost <m_frost2010@hotmail.com> wrote:Hi All,This REALLY is a novice questionI'm writing a simple query where i need to return [Field A]/[Field B] so i can express [Field A] as a percentageBoth of these fields are BigInts, so i always get 0What do i need to do to the data types in my query to enable decimal places?You can cast at least one of them to numeric:postgres=# SELECT 7::int / 10::int; ?column? ---------- 0(1 row)postgres=# SELECT 7::numeric / 10::int; ?column? ------------------------ 0.70000000000000000000(1 row)Thom
Hi All,This REALLY is a novice questionI'm writing a simple query where i need to return [Field A]/[Field B] so i can express [Field A] as a percentageBoth of these fields are BigInts, so i always get 0What do i need to do to the data types in my query to enable decimal places?
В списке pgsql-novice по дате отправления: