Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SP Causing Misterious Compilation Error

Status
Not open for further replies.

jgotthelf

Programmer
Aug 1, 2000
8
US
Hi,<br><br>I'm trying to create this SP:<br><br>create trigger test_addid before insert on mytest<br>for each row<br>begin<br>&nbsp;&nbsp;:new.fred_id := select get_my_id.NextVal from dual; <br>end;<br><br>I also tried:<br>:new.fred_id := get_my_id.NextVal<br><br>and some other variations.&nbsp;&nbsp;They all produce the surprisingly useless message:<br><br>[Oracle][ODBC][Ora]Trigger, procedure or function created with PL/SQL compilation error(s).<br><br>Any help anybody could provide would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top