Join Bill Weinman for an in-depth discussion in this video Date and time functions, part of MySQL Essential Training (2014).
…MySQL provides a set of functions for dealing with dates and times.…For this lesson we are not going to be selecting a database.…We're not actually going to be using a database, we're…just going to be using these functions directly like this.…I can say Select Now and it gives me the current date and time.…This machine is set to UTC which is universal time.…Actually the sid script is set to UTC.…So if you're using sid yours will also be.…And especially, if you have installed the time zone support according…to the instructions in the set up movies, then you'll have UTC.…
If not you did not install the time zone support then…what time zone you're in, it probably will not be UTC.…It'll probably be your local time zone.…So Now gives us the current time stamp, also…Current Timestamp like this gives us the current time stamp.…It's exactly the same.…It's just an alias for Now.…Now is the SQL standard.…You can also get a Unix timestamp which looks like this.…A Unix timestamp is an integer that represents the number of seconds since…
- Writing queries
- Creating and updating databases and tables
- Using MySQL built-in functions
- Sorting and filtering data
- Updating tables with triggers
- Working with subselects and views
- Creating and using a stored function
Skill Level Beginner
1. Installing and Configuring the Test Environment
2. Basic Syntax
3. Creating a Database
4. MySQL Data Types
5. MySQL Functions
8. Subselects and Views
9. Stored Routines
10. PHP's PDO Interface with MySQL
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.