Re: deleting rows in specific order

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: deleting rows in specific order
Дата
Msg-id 5.2.1.1.0.20061009175632.057feec0@pop6.sympatico.ca
обсуждение исходный текст
Ответ на deleting rows in specific order  (Daniel Drotos <drdani@mazsola.iit.uni-miskolc.hu>)
Список pgsql-sql
At 04:14 PM 10/9/06, Daniel Drotos wrote:
>What is the best way to do something like:
>
>delete from tablename where something order by somefield...


You cannot, because it doesn't make sense.  The "order by" clause is not 
valid on delete statement.  Queries from other processes that start while 
your delete is running will either see all the deleted rows or (perhaps) 
they will see none of them. 



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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: [HACKERS] timestamp subtraction (was Re: formatting intervals with to_char)
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: [HACKERS] timestamp subtraction (was Re: formatting intervals with to_char)