我有一个mysql查询,我正在尝试将其移植到oracle DB。
select * from Employees e inner join People p on e.person_id=p.id
where LOWER(`first_name`) like LOWER(?)
and LOWER(`last_name`) like LOWER(?)
但甲骨文不喜欢反对。我根据他们的文档试过双引号:
http://docs.oracle.com/cd/E12151_01/doc.150/e12155/oracle_mysql_compared.htm
但没有骰子。如何将相当简单的查询移植到Oracle SQL?
答案 0 :(得分:2)
假设first_name,last_name是Employees的列,只需删除引号(ticks)。在Oracle中没有必要这样做。
select * from Employees e inner join People p on e.person_id=p.id
where LOWER(first_name) like LOWER(?)
and LOWER(last_name) like LOWER(?)