Created
September 3, 2014 01:05
-
-
Save ilovejs/efad2f30bd53b40dcfac to your computer and use it in GitHub Desktop.
convert datetime type to int
This file contains hidden or 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
| SELECT * FROM [MZTEST].[dbo].[AccessToken] | |
| use [mztest] | |
| alter table AccessToken | |
| add expireDateNew int | |
| alter table AccessToken | |
| drop column expireDate | |
| exec sp_rename 'AccessToken.expireDateNew', 'expireDate' | |
| update AccessToken | |
| set expireDate = 86397 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment