int twos_compl_abs(int a) {
if (a < 0) a = (~a) + 1;
return a;
}
0110 0100
1001 1011
1001 1100
9C
psycopg2.connect(ваши_аргументы_функции, async=1)
программу-утилиту для удобной миграции бд на питоне
*(*(matrix + i) + j)
matrix = new int[100];
cout << matrix[j + i * 10]
object = new Kvadrat();
object = &kv;
decodes(class_tne, 'ТНЭ-1Т'::text, all_cur, 0)) as generation_off_t
'a,b' - TEXT, CHAR(3), VARCHAR(), ...
'1' - SMALLINT, INTEGER, BIGINT, TEXT, ...
'{a,b}' - TEXT[], CHAR(1)[], VARCHAR(...)[], ...
'{1,2}' - TEXT[], SMALLINT[], INTEGER[], BIGINT[], ...
'{"a":"b"}' - JSON, JSONB
'([\-]*[\d]+)'
'$1'::character varying
dh=> create table tab(id int);
CREATE TABLE
dh=> select * from tab;
id
----
(0 rows)
dh=> select * from TAB;
id
----
(0 rows)
dh=> create table "Market"("SnP" text, "FTS" text, "Fts" text, "fts" text);
CREATE TABLE
dh=> select * from "Market";
SnP | FTS | Fts | fts
-----+-----+-----+-----
(0 rows)
WITH RECURSIVE tmp AS (
SELECT REPORT_DATE rdate FROM ODK_INT_rep_p2 WHERE ODK_INT_rep_p2id IN (
SELECT nvl((SELECT ODK_INT_rep_p2id FROM ODK_INT_rep_p2 WHERE TYPE = 2 AND report_date = (SELECT report_date FROM ODK_INT_rep_p2 WHERE ODK_INT_rep_p2id = (SELECT max(ODK_REP_P2ID) FROM odk_svodka_skc2))),
(SELECT ODK_INT_rep_p2id FROM ODK_INT_rep_p2 WHERE TYPE = 2 AND report_date = (SELECT report_date
FROM ODK_INT_rep_p2 WHERE ODK_INT_rep_p2id = (SELECT max(ODK_INT_rep_p2id) AS ODK_INT_rep_p2id
FROM ODK_INT_rep_p2 WHERE TYPE = 1 AND trunc(report_date)= trunc(current_timestamp))))) AS id1
FROM
dual)),
WITH cte_months (day) AS (
...
)