Created
January 30, 2015 13:44
-
-
Save gauravbarthwal/3ebda70f367d719e368b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###sets the global timezone | |
SET GLOBAL time_zone = '+5:30'; | |
###sets the timezone for session | |
SET time_zone = '+5:30'; | |
###to see the timezone of session and global | |
SELECT @@global.time_zone, @@session.time_zone; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To see the current timestamp
SELECT CURRENT_TIMESTAMP();