我有一個表客戶,其字段爲customer_id,customer_fname,customer_lname,customer_address。客戶Oracle索引訪問行爲
CREATE INDEX cust_index
ON customer (UPPER(customer_id));
我使用的查詢
我已經創建的索引cust_index作爲
select * from customer where customer_id=? and customer_fname=?
我想知道的是cust_index會在我的選擇查詢中使用?
對於這個查詢no'select * from customer where customer_id =?' 對於這個是的'select * from customer where where(customer_id)=?' 但是這取決於很多因素。 –
感謝Arkadiusz的回覆。 – user3090158
Arkadiusz你有想法如何檢查特定查詢是否使用任何索引或不? – user3090158