Инструменты пользователя

Инструменты сайта


works:programmer:db-other:pgsql-blob

PostgreSQL Blob

Postgress blob data type is «bytea», down read write example.

INSERT INTO "users" ("id", "name", "password", "permissions") VALUES (1, 'EugeneX', decode('5EFE2294ECD0EFF08EAB769FD2A6EE69', 'hex'), 0);
SELECT u.*, encode("password"::bytea, 'hex') AS "pwhex" FROM "users" u;
TRUNCATE TABLE "users";
works/programmer/db-other/pgsql-blob.txt · Последнее изменение: 2020/10/24 22:10 — 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki