While date and time functions vary in different systems, here are some examples of what types of operations you may expect.
- Every database system has it's own set of functions … specifically tasked for handling dates and times. … These functions are not standardized. … In this lesson, I'll show you the date and time … related functions for SQLite, … the system we are using for the exercises. … Keep in mind that the specific functions and syntax … for your system will be different. … This first statement returns a timestamp, … the current date and time in the UTC timezone. … So I'm going to go ahead and execute that now. … A timestamp is a very common usage, … and every system has a convenient way of finding … the current time and date. … The time and date returned is in UTC, … seven hours later than my local time … here in the US Pacific summer timezone. … SQLite does not have specific types for dates and times. … SQLite uses strings, so it makes sense … that it uses a special string to indicate the current time … with the parameter now in the DATETIME function. … Passing this string to the DATETIME function returns …
This course was created by Bill Weinman. We are pleased to offer this training in our library.
- How databases are organized
- Selecting rows and columns
- Creating new tables
- Inserting and updating data
- 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
- Using CRUD functions
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times2m 6s
11. Views and Subselects
12. 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.