我正在尝试编写一个 SQL 查询,它只会date-time
根据Oracle DB
. 这是我尝试过的:
String getPricesQuery = "SELECT * FROM price WHERE SELECTIONID IN (SELECT ID" +
" FROM selection" +
" WHERE EVENTID =" + eventID + ") ORDER BY TIME(TIMEOFISSUE) ASC";
我读到该TIME()
函数可用于提取 a 的时间部分,但我想在尝试在子句Date-Time
中使用它时它会使其变得更加复杂?ORDER BY