Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否允许在 ANSI SQL 中转换类型,例如在 postgres 中:
SELECT SUM( CAST(qnty AS int) - CAST(reserve AS int) ) AS sum ...
qnty和reserve是字符列。
该CAST表达式是在 SQL-92 中添加的。例如,您可以在此草稿中看到它。
CAST