Re: deleting function
От | pavunkumar |
---|---|
Тема | Re: deleting function |
Дата | |
Msg-id | 1e5ca0ef-7e46-401e-b7d5-897cd22eb08f@i28g2000prd.googlegroups.com обсуждение исходный текст |
Ответ на | deleting function (pavunkumar <pavun.bks@gmail.com>) |
Ответы |
Re: deleting function
Re: deleting function |
Список | pgsql-general |
On Apr 24, 8:55 pm, t...@sss.pgh.pa.us (Tom Lane) wrote: > pavunkumar <pavun....@gmail.com> writes: > > create or replace function newd(id integer ) returns void as $$ > > ^^> begin > > delete from testing where id=$1; > > ^^ > > > end; > > $$ > > language 'plpgsql'; > > Don't use the same name for a parameter as you use for a table column > referenced in the function. The above is equivalent to > "delete... where $1=$1", ie, delete everything. > > regards, tom lane > > -- > Sent via pgsql-general mailing list (pgsql-gene...@postgresql.org) > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-general Dear Friend Whatever your saying right , But why the function not saying error.... ? that is my doubt... this is what I want to clarify....!
В списке pgsql-general по дате отправления: