Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres

Поиск
Список
Период
Сортировка
От Dominique Devienne
Тема Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres
Дата
Msg-id CAFCRh-8d-gsERdu-6W2fb0d6HLi8_bPkS7zVqm0J4ZakpvJQYw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: re-novice coming back to pgsql: porting an SQLite update statement to postgres
Список pgsql-general
On Tue, Jul 23, 2024 at 10:35 PM Adrian Klaver
<adrian.klaver@aklaver.com> wrote:
> Just know that SQLite does not enforce types [...]

That's true, and applies to the OP's schema.

But for the record, SQLite *can* enforce types these days,
on an opt-in basis, with [STRICT tables][1].
Albeit with a limited type-system. --DD

PS: and could be done manually even before, with CHECK
(typeof(col)='blob') for example.

[1]: https://www.sqlite.org/stricttables.html



В списке pgsql-general по дате отправления: