I've spent some time on Google and most of the results seem to be talking about this occurring in phpMyAdmin or some other piece of web based software, however, I'm using the MySQL prompt on my Linux box.
I have a trigger set up on the 'billing' table that should calculate the total fee based on the amount of time spent (used to calculate units) and the price per unit (stored in another table). Its my first time writing up a trigger, so I may have done something wrong with it.
The problem occurs when I insert a row into 'billing'. It gives me an error 1054 saying "Unknown column 'units' in 'field list'".
As there are a few related files, I've uploaded them to one of my sites and I will link to them near the end of the post.
The insert query I use is:
INSERT INTO billing (idc,EI,school,funding_source,serviceDate,totalTime,therapistID,mileage,serviceTypeID) values(0,'M','BAHS','BA','10-29-2008',27,0,0,0);
The files are all located in the following directory, if you'd rather me copy/paste them here, I have no issue with doing that. (I'd link to it, but I have < 10 posts)
davidrware.com/code/sql/
Thanks for the help and for taking the time to look this over for me. If you need any more information, just let me know.


Sign In
Create Account


Back to top










