11.2.3.3.6. ワイルドカードクエリー
1 文字と複数の文字のワイルドカード検索の両方を実行できます。
- 1 文字のワイルドカード検索は ? 文字で使用できます。
- 複数の文字のワイルドカード検索は * 文字で使用できます。
テキストの検索またはテストには、以下の 1 文字のワイルドカード検索が使用されます。
Query wildcardQuery = qf.create("from sample_bank_account.Transaction where description : 'te?t'");
Query wildcardQuery = qf.create("from sample_bank_account.Transaction where description : 'te?t'");
テスト、テスト、またはテストに使用するには、以下の複数文字のワイルドカード検索が使用されます。
Query wildcardQuery = qf.create("from sample_bank_account.Transaction where description : 'test*'");
Query wildcardQuery = qf.create("from sample_bank_account.Transaction where description : 'test*'");