PostgreSQL LIKE 大小写

前端之家收集整理的这篇文章主要介绍了PostgreSQL LIKE 大小写前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Postgresql 数据库

函数upper(“字符串”):转成大写字符串

WHEREUPPER("User_Name") LIKEupper(username) 此句查询“User_Name” 中值大小写不区分。


SELECT "User_Id","User_Image","User_Name","User_Birthday","User_Sex","User_OnlineLat","User_OnlineLon","User_State",

(SELECT COUNT(*) FROM "tbUsers" WHERE UPPER("User_Name") LIKE upper(username)) AS "user_count"
FROM "tbUsers"
WHERE UPPER("User_Name") LIKE upper(username) LIMIT 10 OFFSET 0; 原文链接:https://www.f2er.com/postgresql/194667.html

猜你在找的Postgre SQL相关文章