473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Re: Oracle Problem 1: Please Help


The table looks like the following:
Code
-------------------

INSTRUCTOR_ID(PK) NUMBER(8,0) NOT NULL
SALUTATION VARCHAR2(5) NULL
FIRST_NAME VARCHAR2(25) NULL
LAST_NAME VARCHAR2(25) NULL
STREET_ADDRESS VARCHAR2(50) NULL
ZIP(FK) VARCHAR2(5) NOT NULL
PHONE VARCHAR2(15)
CREATED_BY VARCHAR(3)
CREATED_DATE DATE NOT NUL
-------------------
I'm not fully capable to write PL/SQL I just started last week howeve
I am a very compitent student. If I need to write a trigger could yo
lead me in the right direction
-
singhji
-----------------------------------------------------------------------
Posted via http://www.webservertalk.co
-----------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message173341.htm
Jun 27 '08 #1
2 1402
singhjih wrote:
>
The table looks like the following:
Code:
--------------------

INSTRUCTOR_ID(PK) NUMBER(8,0) NOT NULL
SALUTATION VARCHAR2(5) NULL
FIRST_NAME VARCHAR2(25) NULL
LAST_NAME VARCHAR2(25) NULL
STREET_ADDRESS VARCHAR2(50) NULL
ZIP(FK) VARCHAR2(5) NOT NULL
PHONE VARCHAR2(15)
CREATED_BY VARCHAR(3)
CREATED_DATE DATE NOT NULL
--------------------
I'm not fully capable to write PL/SQL I just started last week however
I am a very compitent student. If I need to write a trigger could you
lead me in the right direction.

Oracle has a lot of good documentation on their site at
http://docs.oracle.com. You should get familiar with the one called 'SQL
Reference' for language and syntax, and the one called PLSQL Reference (I
think) for general PLSQL.

CREATE TRIGGER and PLSQL Anonymous block are some keywords.

/Hans
Jun 27 '08 #2
Hans Forbrich <fo******@yahoo.netwrote in message news:<enBcc.7559$Sh4.5308@edtnps84>...
singhjih wrote:

The table looks like the following:
Code:
--------------------

INSTRUCTOR_ID(PK) NUMBER(8,0) NOT NULL
SALUTATION VARCHAR2(5) NULL
FIRST_NAME VARCHAR2(25) NULL
LAST_NAME VARCHAR2(25) NULL
STREET_ADDRESS VARCHAR2(50) NULL
ZIP(FK) VARCHAR2(5) NOT NULL
PHONE VARCHAR2(15)
CREATED_BY VARCHAR(3)
CREATED_DATE DATE NOT NULL
--------------------
I'm not fully capable to write PL/SQL I just started last week however
I am a very compitent student. If I need to write a trigger could you
lead me in the right direction.

Oracle has a lot of good documentation on their site at
http://docs.oracle.com. You should get familiar with the one called 'SQL
Reference' for language and syntax, and the one called PLSQL Reference (I
think) for general PLSQL.

CREATE TRIGGER and PLSQL Anonymous block are some keywords.

/Hans
Hans gives good advice. Check to doc, its quite complete. The key to
the trigger is that you can reference the old and new values with
syntax :new.<col_nameand :old.<col_name. You can write PL/SQL code
in the trigger that references the old and new value and thus create
complex constraints.

Suggestion. Instead of trying to solve your problem straight out. Try
to create a very simple trigger to get familiar with the concept and
to see it work. Then tackle your problem.

Dave
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: duikboot | last post by:
Hi all, I'm trying to export a view tables from a Oracle database to a Mysql database. I create insert statements (they look alright), but it all goes wrong when I try to execute them in Mysql,...
3
by: Jan Bols | last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for days, but I'm still not able to get it running. I've tried several install instructions that I found on the internet but no...
1
by: Crowe | last post by:
Greetings Everyone: Oracle 9i installed on a sun solaris box. No protocol adapters available. I would greatly appreciate any help from the db gurus on this forum. after bringing up the...
7
by: Cherrish Vaidiyan | last post by:
hello, I am been getting mad with so many doubts and errors.. I have posted some doubts,test cases regarding listener,replication and standby database.But i havent got any response..(I am...
1
by: Dominic | last post by:
Hi, I am TOTALLY new to all this stuff and really hope to find help here. I have to come up with a solution for one of my client. They use HP-UX and Pro/5 What I'm trying to do:
1
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard...
63
by: Nick Palmer | last post by:
Hi all, Is there a DB2 equivilant to Oracle's DB Link functionality ? I have two DB2 databases and I need to get access to the tables in one from the other. In Oracle I would just create a DB...
0
by: Anonymous User | last post by:
Hi, I am working on a mobile application that consists of a number of handheld scanners, an Xml Web service and an Oracle 9i database in a highly secure environment. The .Net Compact Framework...
9
by: D. Patrick | last post by:
I need to connect to an Oracle database. I've never done it before. I see that with framework 1.1 you had to download ODP.NET from Oracle's site in order for the framework classes to even work....
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.