Oracle uses keywords like summary

Like fuzzy query

 

Placeholder

   %   Any number of characters

   _   A character

Queries  the user name to ' S employee information' at the beginning of

   Select * from emp where ename like 'S%'

 

Queries the user name is the second letter 'A' of employee information

   select * from emp where ename like '_A%'

 

Queries the user name is the third letter 'A' of employee information

   select * from emp where ename like '__A%'

 

Contains A

   select * from emp where ename like '%A%'

Guess you like

Origin www.cnblogs.com/qzhc/p/11351104.html