While date and time functions vary in different systems, explore some examples of the types of operations you may expect.
- [Instructor] Every database system has its own…set of functions specifically tasked for handling…dates and times.…These functions are not standardized,…and in this lesson I'll show you the date…and time related functions for SQLite,…the system we're using for these exercises.…Keep in mind that the specific functions and…syntax for your system will be different.…We're gonna go ahead and use the memory database,…and I've pasted in the exercise file here…from Chapter Seven,…I'm just gonna press Go,…and we could take a look at what each…of these functions does starting with DATETIME,…and if I give it a string 'now',…it will simply give me a timestamp for the…date and time right now,…and that timestamp is in UTC.…
I can select just Date for now,…or Time for now,…and that string now can have a second option…which is also a string which will allow you to…add days or months or years or seconds.…So I could say…'now' plus one day,…and you see that plus one day is all in a string.…And so this tomorrow,…you notice that today right now is 4-15,…
- Understanding SQL terminology and syntax
- Creating new tables
- Inserting and updating data
- Writing basic SQL queries
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Defining functions in PHP
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times1m 52s
11. Views and Subselects
12. Defined Functions
13. A Simple CRUD Application
- 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.