For interesting knowledgeable quotes, did you knows, daily facts like my page... and share it more and more......
Click here.....
Go through it..
CREATE TABLE Persons (
ID int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255) NOT NULL,
Age int
);
Try it Yourself »Function | Description |
---|---|
NOW() | Returns the current date and time |
CURDATE() | Returns the current date |
CURTIME() | Returns the current time |
DATE() | Extracts the date part of a date or date/time expression |
EXTRACT() | Returns a single part of a date/time |
DATE_ADD() | Adds a specified time interval to a date |
DATE_SUB() | Subtracts a specified time interval from a date |
DATEDIFF() | Returns the number of days between two dates |
DATE_FORMAT() | Displays date/time data in different formats |
Function | Description |
---|---|
AVG() | Returns the average value |
COUNT() | Returns the number of rows |
FIRST() | Returns the first value |
LAST() | Returns the last value |
MAX() | Returns the largest value |
MIN() | Returns the smallest value |
ROUND() | Rounds a numeric field to the number of decimals specified |
SUM() | Returns the sum |