Re: [GENERAL] float8 type
От | Sferacarta Software |
---|---|
Тема | Re: [GENERAL] float8 type |
Дата | |
Msg-id | 8457.980805@bo.nettuno.it обсуждение исходный текст |
Ответ на | float8 type ("Krasnow, Greg" <gak@hnc.com>) |
Список | pgsql-general |
Hello Krasnow,, martedì, 4 agosto 98, you wrote: KG> Is it not possible to have a float8 value default to a negative number?? KG> I tried: KG> CREATE TABLE TEST1 (T1 FLOAT8 DEFAULT -1); KG> and I am getting: KG> ERROR: DEFAULT: type mismatched. KG> I also tried: KG> CREATE TABLE TEST1 (T1 FLOAT8 DEFAULT -1.0); KG> and have the same result. KG> am I going to have to create a function which returns the negative of a KG> number since it seems like the parser does not recognize the '-' as a KG> negative sign? KG> - Greg KG> Greg Krasnow KG> HNC Software Inc. KG> Financial Solutions Group KG> Senior Software Engineer KG> Email: gak@hnc.com KG> Direct Phone: 619.799.8341 KG> Fax: 619.799.8036 Try this: CREATE TABLE TEST1 (T1 FLOAT8 DEFAULT '-1') ^^^^^ Best regards, Jose' mailto:sferac@bo.nettuno.it
В списке pgsql-general по дате отправления: