java.sql Code Samples
- How do I make updates in Updatable ResultSet?
- How do I get all table names from database?
- How do I create a batch update in JDBC?
- How do I commit or rollback transaction in JDBC?
- How do I get string functions supported by database?
- How do I create a table in database?
- How do I drop table from database?
- How do I register out parameter in CallableStatement?
- How do I create a scrollable result sets?
- How do I retrieve auto-generated keys?
- How do I move cursor to the last record?
- How do I move cursor in scrollable result sets?
- How do I get list of stored procedure names?
- How do I check if cursor is in the last row?
How do I get date time functions supported by database?
Date and time functions supported by MySQL database.
Function = DAYOFWEEK Function = WEEKDAY Function = DAYOFMONTH Function = DAYOFYEAR Function = MONTH Function = DAYNAME Function = MONTHNAME Function = QUARTER Function = WEEK Function = YEAR Function = HOUR Function = MINUTE Function = SECOND Function = PERIOD_ADD Function = PERIOD_DIFF Function = TO_DAYS Function = FROM_DAYS Function = DATE_FORMAT Function = TIME_FORMAT Function = CURDATE Function = CURRENT_DATE Function = CURTIME Function = CURRENT_TIME Function = NOW Function = SYSDATE Function = CURRENT_TIMESTAMP Function = UNIX_TIMESTAMP Function = FROM_UNIXTIME Function = SEC_TO_TIME Function = TIME_TO_SEC