I
I
impressive172020-06-07 21:43:15
PostgreSQL
impressive17, 2020-06-07 21:43:15

How to escape a field in a Postgresql query?

I need to write Where cnt is a table field, how do I do that?
Select interval 'cnt day'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-06-07
@impressive17

cnt number?
Select cnt * interval '1 day'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question