What is benefit of creating memory optimized table?
No Answer is Posted For this Question
Be the First to Post Answer
Hi all, I am going to write oracle certification. Can anyone send me the dumps available if any for OCA exam? Its really very urgent, prompt response will help me alot..
What is the use of index in hive?
Is sqlite thread safe?
Explian rowid, rownum? What are the psoducolumns we have?
Where do we use pl sql?
Which is faster view or stored procedure?
select 10 from dual; y its showing all the rows with 10?
What is bulk collections?
what is difference between pass by value and eference by value in oracle plsql
How to return more than one value from a function?
Hi All, I am new to both this blog and technology. I was able to see a response for one of the questions on triggers as below. I would like to know why are we using " if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then" instead, can't we use " if sysdate = 'sunday' then". I can understand the use of "rtrim", but dont know y v r using to_char. I have seen this in many cases but did not get a convincible explaination. Please help me with this and do excuse if this question sounds silly. Thanks in advance...... create or replace trigger trg_sun before insert on <table name> begin if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then raise_application_error(-20345,'no transaction in sunday'); end if; end trg_sun;
There are 5 records in a table and we have implemented two triggers that are :pre_query and post_query how many times these triggers will fire.