Re: Feature Proposal: Column-Level DELETE Operation in SQL

Поиск
Список
Период
Сортировка
От Amul Sul
Тема Re: Feature Proposal: Column-Level DELETE Operation in SQL
Дата
Msg-id CAAJ_b94WYnPpc7+yEsbHQvzcFuT3pF=_+nze7ySkQdhDVE41og@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Feature Proposal: Column-Level DELETE Operation in SQL  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Список pgsql-general
On Tue, Apr 22, 2025 at 5:56 PM Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote:
>
> Am Mon, Apr 21, 2025 at 10:23:30PM +0530 schrieb Abhishek Hatgine:
>
> >    *deleting* a value is conceptually different from *updating* it to NULL.
>
> In what way ?
>
> In other words, you'll have to much better define what you
> mean be "deleting a value".
>
> DROP COLUMN already exists, for that matter.
>
> Updating a column to its DEFAULT value may also be closer to
> what you envision a "column-delete" to do.
>

Agreed, this is a much better approach to achieve the same.

I am a bit skeptical about whether the proposed syntax will be
acceptable if it's not SQL standard, unless it's absolutely necessary
to support functionality that can't be achieved with the existing
syntax which is not the case here.

Regards,
Amul



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