Search Postgresql Archives

Re: Delete with a multi-column join?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



leon-pg@xxxxxxxxxxxxx writes:
> Is there a better way to write this?

> delete
> from tbldata
> where unitID || '_' || variableID || '_' || cycleID in
> 	(select unitID || '_' || variableID || '_' || cycleID from 
> temp_data_table)

delete
from tbldata
where (unitID, variableID, cycleID) in
	(select unitID, variableID, cycleID from temp_data_table)

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux