Skip to Main Content

Japanese

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LIKE検索の仕様について

user10915430Jul 29 2011 — edited Dec 13 2011
SQL文で、制約条件に「 like '%%' 」をつけると、どのようなデータが抽出されるのでしょうか?

全件検索と同じ結果になるのではと思い、調査のため以下の2つのSQL文を実行したところ、
①と②の検索結果(件数)には差異がありました。(②のほうが少ない件数がヒットしました)

 ①select count(*) from A;

 ②select count(*) from A where A_COL like '%%';
 ※A_COLは、テーブルAのカラムです。

初歩的なことかもしれませんが、ご教授いただきたく、よろしくお願い致します。
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2012
Added on Jul 29 2011
3 comments
4,966 views