English

Write a SQL query for the following: To display the position of first occurrence of ‘com’ in the string ‘mycommercial.com’.

Advertisements

Question

Write a SQL query for the following:

To display the position of first occurrence of ‘com’ in the string ‘mycommercial.com’.

Code Writing
Advertisements

Solution

SELECT INSTR(‘mycommercial.com’, ‘com’);

shaalaa.com
  Is there an error in this question or solution?

APPEARS IN

Advertisements
Share
Notifications



      Forgot password?
Use app×