What is translate in oracle?



What is translate in oracle?..

Answer / Awadheshwar Kumar

TRANSLATE in Oracle is a string function that replaces one set of characters with another. It takes three arguments: the source string, the translation table, and the replacement string. An example would be:

```sql
SELECT TRANSLATE('ABCDEFG', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'XYZABCDEFGHIJKLMNOPQRSTUVW') AS translated_string FROM dual;
```
In this example, it replaces all uppercase letters A-Z in the string 'ABCDEFG' with their respective positions in the replacement string.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

Which of the following is not a database object TABLESPACE TABLE INDEX NONE

1 Answers  


How translate command is different from replace?

1 Answers  


How to find out what privileges a user currently has in oracle?

1 Answers  


What is a nested table and how is it different from a normal table?

1 Answers  


Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.

1 Answers   TCS,


how to clone 9i Database on to 10g Database.

1 Answers  


What are the common oracle dba tasks?

1 Answers  


How to define an anonymous procedure without variables?

1 Answers  


What is logical backup in oracle?

1 Answers  


what is IDE,DMV in sql server?

1 Answers  


sql query to get zero records from a table

7 Answers   CTS,


how to find full database size

1 Answers   BirlaSoft, Consultancy,


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)