输入末尾出现 PostgresQL 语法错误,我该如何解决?
PostgresQL Syntax Error at end of input, how do I troubleshoot this?
我的 PostGresQL 代码中出现错误。
org.postgresql.util.PSQLException:错误:输入末尾有语法错误
位置:250
从
tutorial.crunchbase_companies
这通常有效,所以我不确定我的错误是什么意思。
我怀疑您想要公司总数、列中具有非 NULL 值的公司和比率。
如果是,这与distinct
无关:
SELECT COUNT(*),
COUNT(funding_total_usd) as num_with_funding,
AVG( (funding_total_usd IS NOT NULL)::int ) as ratio_with_funding
FROM tutorial.crunchbase_companies;
我的 PostGresQL 代码中出现错误。
org.postgresql.util.PSQLException:错误:输入末尾有语法错误 位置:250 从 tutorial.crunchbase_companies
这通常有效,所以我不确定我的错误是什么意思。
我怀疑您想要公司总数、列中具有非 NULL 值的公司和比率。
如果是,这与distinct
无关:
SELECT COUNT(*),
COUNT(funding_total_usd) as num_with_funding,
AVG( (funding_total_usd IS NOT NULL)::int ) as ratio_with_funding
FROM tutorial.crunchbase_companies;