I really want to be be cautious when doing my job.
I need to replace blank with some text in my SQL Query but I don’t want actually update into database, just want to update to data I query.
If I use Replace() will it replace on server too or just to data I query?
can you provide me with example, how I can use Replace() to replace only in data I read not into server.
How you use
REPLACEhas nothing to do with updating data.Rather, it is whether you use a
SELECTorUPDATEstatement that matters.A
SELECTstatement will only query (retrieve) data, it will not modify it in the database.Oracle Docs:
An
UPDATEstatement will modify the data in the database, assuming it finds matching rows.Oracle Docs: