-- 大写函数upper()
select * from table_name where upper(code) = 'AA';
-- 小写函数lower()
select * from table_name where lower(code) = 'aa;
Postgresql中大小写转换
于 2021-07-26 15:32:04 首次发布
本文介绍如何使用SQL中的upper()和lower()函数来实现字段值的大写和小写转换。通过具体的示例展示了如何在查询中应用这两个函数。
3938

被折叠的 条评论
为什么被折叠?



