Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save csdear/c681a329c7a76abc3fe1 to your computer and use it in GitHub Desktop.

Select an option

Save csdear/c681a329c7a76abc3fe1 to your computer and use it in GitHub Desktop.
Insert Into w/ DATEADD & GETDATE Functions
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