Created
August 26, 2015 15:26
-
-
Save csdear/c681a329c7a76abc3fe1 to your computer and use it in GitHub Desktop.
Insert Into w/ DATEADD & GETDATE Functions
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 user_notification | |
| insert into user_notification | |
| (user_id, notification_type_id, subject, body, user_deletable, created_on, expires_on, read_on, deleted_by_system, deleted_on) | |
| values | |
| (1, 1, 'subjectQA2', 'bodyQA2', 1, DATEADD(MINUTE, -10, GETDATE()), DATEADD(DAY, 180, GETDATE()), null, 0, null) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment