Quote
Error Code : 1054
Unknown column 't4' in 'field list'
(0 ms taken)
Unknown column 't4' in 'field list'
(0 ms taken)
I can't figure it out. Why does it think that my table is a column?
-- file count.sql -- This procedure counts the number of records of any given table DROP procedure if exists my_schema.count; delimiter $$ CREATE procedure my_schema.count(IN tablename varchar(255), OUT num_recs int) BEGIN select count(*) from tablename; END$$ delimiter ; call my_schema.count(t4,@recs); select @recs;
Thanks for your help!


Sign In
Create Account

Back to top










