Quantcast
Channel: 質問!ITmedia 新着質問(PostgreSQL/702)
Viewing all articles
Browse latest Browse all 116

postgresの関数内で変数からの時間の足し算

$
0
0
postgresの関数内で変数からの時間の足し算の仕方を教えてください。 DECLARE result timestamp with time zone; l_minuteinteger := 15; BEGIN result := current_timestamp + '15 minute'; RETURN result; END; このように 直接「 + '15 minute'」を足す方法は分かるのですが、 上記のl_minuteを使ってl_minuteが分かりません。 よろしくお願いします。

Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>