importjava.sql.*;publicclassPgDateFormat{privatestaticfinalStringURL="jdbc:postgresql://localhost:5432/your_database";privatestaticfinalStringUSER="your_username";privatestaticfinalStringPASSWORD="your_password";publicstaticvoidmain(String[]args){StringdateFormat="YYYY-MM-DD";StringformattedDate=formatCurr...
方式一:正确 select to_date('2018-03-08','yyyy-MM-dd') from pub_employee 方式二: select to_date('2018-03-08 18:55:33','yyyy-MM-dd') from pub_employee 方式三: select to_date('2018-03-08 18:55:33','yyyy-MM-dd hh24:mi:ss') from pub_employee 使用to_date 返回的都是以下结...