|
|
Sponsor |
check the duplicate code: msg#00001db.oracle.devel
is there a way to prevent inserting a record that with 1 of the fields is dusplicate with the exsiting record. i mean lets consider the following situation: i have 1 table tbl_department description id sys_guid() (primary key) code nvarchar2(10) del number(1) * the field tbl_department.del is to indicate whether the record is already deleted or not. (1 = deleted, 0 = not deleted) * tbl_department.code is not a unique key let's said there is already a department record exist: id code del == ==== === 999.... abc 0 im facing a problem that the system is able to accept another record with the same tbl_department.code = abc which i try to prevent it. is there a way (for example, create a trigger) that i can check the duplicate code before inserting into the table? Thanks a lot and regards, ychin --- Change your mail options at http://p2p.wrox.com/manager.asp or to unsubscribe send a blank email to leave-oracle-1796914O@xxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Time problem, c . r . farmer |
|---|---|
| Next by Date: | Re: check the duplicate code, c . r . farmer |
| Previous by Thread: | Re: Time problem, c . r . farmer |
| Next by Thread: | Re: check the duplicate code, c . r . farmer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|