UPDATE SOS_OBJ_DEF SET OBJ_EXPLANATION = Replace(OBJ_EXPLANATION,’chr(39)’, ””)
UPDATE myTable
SET myField = REPLACE(myField, '''', '"');
UPDATE myTable
SET myField = REPLACE(myField, '''', '"');
SELECT TRUNC(sysdate, 'MM') FROM dual
SELECT LAST_DAY(sysdate) FROM dual
SELECT TO_CHAR(sysdate - (TO_CHAR(sysdate, 'D')-1),'dd.MM.yyyy') AS PAZARTESI FROM dual
SELECT TO_CHAR(sysdate - (TO_CHAR(sysdate, 'D')) + 7 , 'dd.MM.yyyy') AS PAZAR FROM dual
GRANT SELECT ON TABLE t TO maria,harry
GRANT UPDATE, TRIGGER ON TABLE t TO anita,zhi
GRANT SELECT ON TABLE s.v to PUBLIC
GRANT EXECUTE ON PROCEDURE p TO george
GRANT purchases_reader_role TO george,maria
GRANT SELECT ON TABLE t TO purchases_reader_role
GRANT USAGE ON SEQUENCE order_id TO sales_role;
GRANT USAGE ON TYPE price TO finance_role;