Optimization of select statements for non-indexed fields in oracle data

SELECT FROM order table WHERE order date | | order time < = "20180725180000"AND type =" "AND status =" "AND ROWNUM < *;
how to optimize the sql to speed up the query efficiency.

Mar.30,2021

create an index on the order date

The

sql statement is modified slightly:

select *
from (
    SELECT * FROM  WHERE  < '20180726' AND = '' AND  = ''
)
where  < '20180725' or ( = '20180725' and  <= '180000')
and rownum < 10

other aspects can only be considered from the hardware point of view, put the data files corresponding to the order table on the SSD hard drive.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39f5b-2c1b9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39f5b-2c1b9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?