Core Data: 3 table join?

后端 未结 2 1864
情书的邮戳
情书的邮戳 2021-02-06 11:35

I know Core Data is not a database and there are many differences. Is this one?

In a database, I would commonly have the following

A ->> B ->> C

\"A\" h

2条回答
  •  伪装坚强ぢ
    2021-02-06 12:05

    Is it possible for core data to add tests for attributes of both b and a? Or will I have to iterate over each result set successively to get my final result?

    select 
      p.id, p.total 
    from 
      purcord p, line l, delivery d 
    where 
      l.purcord_id = p.id
      and d.purcord_id = l.purcord_id
      and d.purcord_line_no = l.line_no
      and d.status = 'notdelivered'
      and l.status = 'open'
      and p.status = 'open'
    

提交回复
热议问题