Kheira
Kheira

Reputation: 7

interval +variable PostgreSql

is there anyone at there who knows how to use a variable interval instead of a number interval in postgresql?

For example :

Upvotes: 0

Views: 285

Answers (1)

user330315
user330315

Reputation:

You can use make_interval()

make_interval(days => 1, months => nbmois);

Upvotes: 1

Related Questions