Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

wtite down triggr not any entry on Sunday

Answer Posted / debasish sinha

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;

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define select, insert, create, delete, update, drop keywords

1049


Difference between truncate, delete and drop commands?

1082


Is nosql relational?

943


What are the different ways to optimize a sql query?

946


Why do you partition data?

1022


what is oltp (online transaction processing)? : Sql dba

1078


What is cursor explain with example?

987


How many postgresql users are there, worldwide?

1061


How to display the records between two range in Oracle SQL Plus?

1147


Is sql a oracle?

981


What are sql constraints?

1175


Is join and inner join the same?

1003


What does <> sql mean?

1091


How do you concatenate in sql?

1028


What are reports usually used for?

1023