credits is temporary table. I need to show all records along with total number of records. I am using following query.
select *,(select count(*) from credits ) as totalrecords from credits;
Error:1137 - Can't reopen table: 'credits'
credits is temporary table. I need to show all records along with total number of records. I am using following query.
select *,(select count(*) from credits ) as totalrecords from credits;
Error:1137 - Can't reopen table: 'credits'