I want to use jdbcTemplate to create table based on another table under condition. I have postgres database. When I execute this and pass parameter:

```
String SQL = "create table test as (select * from users where countryId =?)";

jdbcTemplate.update(SQL, new Object[] {3})

```

I receive table test with all columns from users table but with no rows.

However, when I execute this:

```
String SQL = "create table test as (select * from users where countryId =3)";

jdbcTemplate.update(SQL)

```

I receive test table with rows where countryId = 3, so that is what I was expecting to receive in the first solution.