SQL错误无效

时间:2017-05-25 08:32:42

标签: sql oracle

select pet_id, name, type, breed, gender from pet
where gender ='F' or gender ='X'
and where name like '%S'
order by gender;

代码返回错误,说明ORA-00936:缺少表达式

2 个答案:

答案 0 :(得分:3)

link_to

答案 1 :(得分:0)

SELECT pet_id,
  name,
  type,
  breed,
  gender
FROM pet
WHERE gender in ('F','X')
---Where remove and from here
and name LIKE '%S'
ORDER BY gender;