Click here to Skip to main content
15,910,009 members
Home / Discussions / Database
   

Database

 
GeneralRe: Create table error using ADO Pin
elephantstar9-Feb-05 10:59
elephantstar9-Feb-05 10:59 
GeneralSingle Function Pin
Esmo20009-Feb-05 10:41
Esmo20009-Feb-05 10:41 
GeneralRe: Single Function Pin
Christian Graus9-Feb-05 10:47
protectorChristian Graus9-Feb-05 10:47 
GeneralStyle Pin
Esmo20009-Feb-05 10:19
Esmo20009-Feb-05 10:19 
GeneralRe: Style Pin
Yulianto.10-Feb-05 14:32
Yulianto.10-Feb-05 14:32 
GeneralRe: Style Pin
Arjan Einbu10-Feb-05 21:51
Arjan Einbu10-Feb-05 21:51 
GeneralDatetime Pin
Esmo20009-Feb-05 9:10
Esmo20009-Feb-05 9:10 
GeneralRe: Datetime Pin
Christian Graus9-Feb-05 10:02
protectorChristian Graus9-Feb-05 10:02 
Examples
This example prints a listing of a time frame for titles in the pubs database. This time frame represents the existing publication date plus 21 days.

USE pubs

GO

SELECT DATEADD(day, 21, pubdate) AS timeframe

FROM titles

GO


It's simple - they get a date, and they add 21 days to it. That's what the '21' parameter is for, and what DATEADD does.


Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: Datetime Pin
Esmo20009-Feb-05 10:13
Esmo20009-Feb-05 10:13 
GeneralRe: Datetime Pin
Christian Graus9-Feb-05 10:19
protectorChristian Graus9-Feb-05 10:19 
GeneralRe: Datetime Pin
Esmo20009-Feb-05 10:37
Esmo20009-Feb-05 10:37 
GeneralRe: Datetime Pin
Christian Graus9-Feb-05 10:45
protectorChristian Graus9-Feb-05 10:45 
GeneralResult Set Pin
Esmo20009-Feb-05 5:21
Esmo20009-Feb-05 5:21 
GeneralRe: Result Set Pin
Colin Angus Mackay9-Feb-05 6:02
Colin Angus Mackay9-Feb-05 6:02 
GeneralRe: Result Set Pin
Esmo20009-Feb-05 9:04
Esmo20009-Feb-05 9:04 
GeneralRe: Result Set Pin
Christian Graus9-Feb-05 10:49
protectorChristian Graus9-Feb-05 10:49 
GeneralViewing and editing several connected tables in a DataGrid Pin
j1hammer9-Feb-05 2:46
j1hammer9-Feb-05 2:46 
GeneralDataGrid sorting Pin
Mr.Cooper9-Feb-05 0:38
Mr.Cooper9-Feb-05 0:38 
GeneralSQL Query Required ! Pin
Zishan Haider8-Feb-05 23:31
Zishan Haider8-Feb-05 23:31 
GeneralRe: SQL Query Required ! Pin
David Salter8-Feb-05 23:50
David Salter8-Feb-05 23:50 
GeneralRe: SQL Query Required ! Pin
Zishan Haider9-Feb-05 0:01
Zishan Haider9-Feb-05 0:01 
GeneralRe: SQL Query Required ! Pin
Mike Dimmick9-Feb-05 2:24
Mike Dimmick9-Feb-05 2:24 
GeneralRe: SQL Query Required ! Pin
Zishan Haider9-Feb-05 3:23
Zishan Haider9-Feb-05 3:23 
QuestionHow to set SAFEARRAY in CRecordset (ODBC) Pin
Anonymous8-Feb-05 10:10
Anonymous8-Feb-05 10:10 
GeneralNewbie Question Pin
Esmo20008-Feb-05 4:58
Esmo20008-Feb-05 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.