我有一个宽度和高度(两个整数)的表。我想按原样显示它。 对于例如:宽度= 300和高度= 160 面积= 300×160。 我使用以下查询在PostgreSQL中连接
select cast(concat(width,'x',height) as varchar(20)) from table;
或
select concat(width,'x',height) from table;
但我正在下面的错误。
ERROR: function concat(character varying, "unknown", character varying) does not exist
Hint: No function matches the given name and argument types. You may need to add explicit type casts.
谁能告诉我该怎么做? 感谢