Essential SQL Functions for Data Manipulation

Essential SQL Functions for Data Manipulation Date and Time Functions DATE_FORMAT The DATE_FORMAT function allows you to display date/time values in different formats. -- Function: DATE_FORMAT SELECT DATE_FORMAT(CURRENT_TIMESTAMP(), "%Y-%m-%d %H:%i:%s") AS formatted_time, DATE_FORMAT(creation_date, "%m - %w") AS formatted_date FROM em ...

Posted on Sat, 10 Oct 2026 16:16:48 +0000 by drisate

MySQL Date/Time Functions and Conditional Expressions

Date and Time Functions MySQL provides comprehensive funcsions for extracting and manipulating date and time values. Retrieving Current Date/Time -- Get current date and time SELECT NOW(); -- Returns: YYYY-MM-DD HH:MM:SS -- Get current date only SELECT CURDATE(); -- Returns: YYYY-MM-DD -- Get current time only SELECT CURTIME(); -- Returns: HH ...

Posted on Wed, 26 Aug 2026 16:11:43 +0000 by darcuss

Working with Dates and Times in MySQL

MySQL providse a rich set of functions and syntaxes for handling date and time data, which is crucial for many applications. This guide covers common scenarios for querying, manipulating, and converting date and time values. Querying Based on Date and Time Criteria When your data is stored in a datetime type field, like publish\_time, you can f ...

Posted on Sat, 08 Aug 2026 16:34:18 +0000 by venkyphp