Sql 查找具有小写名称和大写首字母名称的记录

Sql 查找具有小写名称和大写首字母名称的记录,sql,oracle,Sql,Oracle,我有一个OracleDB,在我的表中,一些记录名的第一个字母都是小写,有些是大写。例子:洛根和洛根。我需要能够返回两个结果 这是我的问题 SELECT DISTINCT uzer.email, uzer.firstname, uzer.lastname, account.name, account.brand,account.id FROM UZER, ACCOUNT, UZERACCOUNT where UZER.ID=UZERACCOUNT.UZERID AND ACCOUNT.ID=U

我有一个OracleDB,在我的表中,一些记录名的第一个字母都是小写,有些是大写。例子:洛根和洛根。我需要能够返回两个结果

这是我的问题

SELECT DISTINCT uzer.email, uzer.firstname, uzer.lastname,  account.name, 
account.brand,account.id
FROM UZER, ACCOUNT, UZERACCOUNT
where UZER.ID=UZERACCOUNT.UZERID AND ACCOUNT.ID=UZERACCOUNT.ACCOUNTID
AND UZER.firstname='Logan' 
有没有一种方法可以做到这一点而无需投入OR?因为这个查询也将增长到使用姓氏,而且我需要它更快

尝试使用UPPER()


这很有效。谢谢
SELECT DISTINCT uzer.email, uzer.firstname, uzer.lastname,  account.name, 
account.brand,account.id
FROM UZER, ACCOUNT, UZERACCOUNT
where UZER.ID=UZERACCOUNT.UZERID AND ACCOUNT.ID=UZERACCOUNT.ACCOUNTID
AND upper(UZER.firstname)=upper('Logan' )