What is the use of double ampersand (&&) in sql queries? Give an example


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SQL PLSQL Interview Questions

What is a pdo connection?

0 Answers  


How can I delete duplicate rows?

0 Answers  


What is a Procedure ?

3 Answers  


What is dba in sql? : SQL DBA

0 Answers  


25.67,-1 Trunc = 20 Round= 30 HOW????

2 Answers   Karrox,






Define tables and fields in a database

0 Answers  


How can triggers be used for the table auditing?

0 Answers  


What is view explain with example?

0 Answers  


What is an index in sql with example?

0 Answers  


What is a sql instance vs database?

0 Answers  


Name the tables where characteristics of Package, procedure and functions are stored ?

3 Answers  


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;

2 Answers  


Categories