| От | Reed Loefgren |
|---|---|
| Тема | Adding to multiplied values |
| Дата | |
| Msg-id | 20060518223103.G91432@auden.jmla.com обсуждение |
| Ответы |
Re: Adding to multiplied values
|
| Список | pgsql-php |
All I've been hacking away on a little time billing database and I've been having difficulty adding to a calculated amount. This is what I am trying to get to in an insert (for the column 'grandTotal'): ($compRate * $time) + $expenses I've tried various combinations of quotes, double quotes, parentheses and what have you, but I still get errors like: ERROR: operator is not unique: "unknown" + "unknown" and ERROR: invalid input syntax for type numeric: "7.50 * 5" I've been able to figure out hours times comp to produce a subtotal, but I can't seem to pull in an additional amount to produce the grand total. What's the syntax here? thanks, r
В списке pgsql-php по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера