Re: SQL spec/implementation question: UPDATE

Поиск
Список
Период
Сортировка
От Kevin Hunter
Тема Re: SQL spec/implementation question: UPDATE
Дата
Msg-id 471C3B65.7090608@earlham.edu
обсуждение исходный текст
Ответ на Re: SQL spec/implementation question: UPDATE  (Ron Johnson <ron.l.johnson@cox.net>)
Ответы Re: SQL spec/implementation question: UPDATE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
At 11:33p -0400 on 21 Oct 2007, Ron Johnson wrote:
> Not to bash MySQL (much...) but ISTM that this is another example of
> MySQL playing fast and loose with SQL.

I don't have handy a spec guide.  Does this mean that MySQL is indeed
showing incorrect behavior?  I like what's been said upthread:

The query MySQL apparently sees:
UPDATE test SET name = 'kevin' WHERE passion = 'soccer' AND name <> 'kevin';

The query as I wrote:
UPDATE test SET name = 'kevin' WHERE passion = 'soccer';

Even though it is, in fact, the same, it should still be updated because
that's what I said.  Is that what you're saying?  Is that the spec?

Thanks,

Kevin

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

Предыдущее
От: Kevin Hunter
Дата:
Сообщение: Re: SQL spec/implementation question: UPDATE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SQL spec/implementation question: UPDATE