Re: Please help
От | Sean Davis |
---|---|
Тема | Re: Please help |
Дата | |
Msg-id | fb53375a0b78424fa5cb054854b7b0d2@mail.nih.gov обсуждение исходный текст |
Ответ на | Re: Please help (Kumar S <ps_postgres@yahoo.com>) |
Список | pgsql-novice |
On Mar 1, 2005, at 1:03 PM, Kumar S wrote: > Hi Sean, > I tried a SELECT statement in INSERT Statement. > > > > INSERT into xx(aa,aa,my_FK) values(bb,bb, > > (SELECT my_fk > from my_chip_table > where chip_description ~'U133A' > ) > ); > > The problem with this procedure is: > > genechip_id > ------------- > 4 > 5 > (2 rows) > > > I am getting two chips: > > 4 | Human Genome U133A 2.0 Array |Homo sapiens > 5 | Human Genome U133A Array | Homo sapiens > > U133A has also a Ver.2. > So which one do you want? If you know you want only #5, then you can just do ~ 'U133A Array' for hgu133A or ~ 'U133A 2' for AV2. If you want to lump all 133A arrays together, regardless of version, I would suggest changing the my_chip_table to have only one U133 entry to stave off future confusion. Sean
В списке pgsql-novice по дате отправления: