Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

(today - interval(13) month to month) error

Status
Not open for further replies.

lathspell

Programmer
Oct 3, 2003
1
FR
I am seeing a 1267 error generated by the following code.

select (today - interval(13) month to month)
from Any_test_table

If I substitute any other integer for the 13 it seems to work. Has anyone else seen this problem?

 
Have you tried this ?
select today - 13 units month

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
PH:

select today - interval(13) month to month
select today - 13 units month

Both these statement will fail, and will report 1267 error if the date is march 30 for any year.

select date('03-30-2004') - 13 units month from systables where tabid=1;

Regards,
Shriyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top