Skip to content

Instantly share code, notes, and snippets.

@gauravbarthwal
Created January 30, 2015 13:44
Show Gist options
  • Save gauravbarthwal/3ebda70f367d719e368b to your computer and use it in GitHub Desktop.
Save gauravbarthwal/3ebda70f367d719e368b to your computer and use it in GitHub Desktop.
###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;
@gauravbarthwal
Copy link
Author

To see the current timestamp

SELECT CURRENT_TIMESTAMP();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment