How can you load microsoft excel data into oracle? : aql loader
how to delete an existing column in a table? : Sql dba
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;
What is difference between hql and native sql?
What are different categories of sql commands?
Types of optimization?
How many aggregate functions are available there in sql?
What is the difference between function and procedure in pl/sql?
What is pl/sql tables?
How do I remove sql developer from windows 10?
Define implicit and explicit cursors.
How can we overcome recursive triggers in SQL?
How can we make an if statement within a select statement?