How do you declare a variable in pl sql?


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

Post New Answer

More SQL PLSQL Interview Questions

What does := mean in pl sql?

0 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  


Is postgresql a server?

0 Answers  


why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba

0 Answers  


How do you optimize a stored procedure in sql?

0 Answers  






Explain the insert into statements in sql?

0 Answers  


how will i became good database developer?

1 Answers  


Enlist the characteristics of pl/sql?

0 Answers  


Explain select statements in sql?

0 Answers  


Is crud a cuss word?

0 Answers  


What is a primary key? Explain

0 Answers  


What is meaning of <> in sql?

0 Answers  


Categories