The following are some of the ways strings can be manipulated in the SQL command.
Note that MS Access uses '?' for 1 character and '*' for any number of characters.
SELECT EmployeeName FROM Employee WHERE EmployeeName LIKE '_ash%';will select any employee name starting with one of any character with 'ash' and following by any characters (i.e, Nash, Washington, etc.)
SELECT area_code || '-' || phone_number FROM address;will concate the area code 518 and phone number 2766666 and produce a result like 518-2766666.
INSTR(string, set [,start, [occurrence]])
SUBSTR(string, start, count)
Exit to : Oracle Hints and Tips