The fastest way to check if some records in a database table?

前端 未结 6 1439
耶瑟儿~
耶瑟儿~ 2020-12-14 22:44

I have a huge table to work with . I want to check if there are some records whose parent_id equals my passing value . currently what I implement this is by using \"select

6条回答
  •  独厮守ぢ
    2020-12-14 23:45

    For DB2 there is something like select * from mytable where parent_id = ? fetch first 1 row only. I assume that something similar exists for oracle.

提交回复
热议问题