Re: How do I do a dynamic - select now() + interval X days ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Abraham, Danny wrote:
> Thanks

For doing that based on an arbitrary value, just do the following:

    select now() + interval '1 day' * X;

-Jon

-- 
Senior Systems Developer
Media Matters for America
http://mediamatters.org/

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux