LinCash=# CREATE OR REPLACE VIEW kassa_transactions AS
SELECT a.n_transaction, a.tr_type_id, a.name, a.value_1, a.value_2, a.gain, a.barcode, a.tr_date_time, a.n_pc, a.n_kkm, a.seller, a.n_session, a.n_check, a.n_doc, a.check_type, a.code, a.code_tax_group, a.code_tax_rate, a.payment_type, a.card_code, a.reduction_info, a.reduction_type, a.auto_scheme_id, a.protokol_type, a.round_sum
FROM dblink('hostaddr=192.168.1.5 port=5432 dbname=Transaction user=kassir'::text, 'SELECT FROM transaction_explain '::text) a(n_transaction integer, tr_type_id integer, name text, value_1 numeric(19,3), value_2 numeric(19,3), gain text, barcode text, tr_date_time timestamp without time zone, n_pc integer, n_kkm integer, seller integer, n_session integer, n_check integer, n_doc integer, check_type integer, code text, code_tax_group integer, code_tax_rate integer, payment_type integer, card_code text, reduction_info text, reduction_type integer, auto_scheme_id integer, protokol_type integer, round_sum numeric(19,3));
ERROR: function dblink(text, text) does not exist
СТРОКА 3: FROM dblink('hostaddr=192.168.1.5 port=5432 dbname=Transa...
^
ПОДСКАЗКА: No function matches the given name and argument types. You might need to add explicit type casts.
LinCash=#
таблица штрих-кодов может быть перезаписана по данным товароучетки в произвольный момент времени
- Код: Выделить всё
LinCash=# * from
sales_bydate_operaion order by salesdate desc limit 10;
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3