Sincere Posted April 13, 2008 Share Posted April 13, 2008 hello update pafiledb_cat set files_nb = (select file_catid from pafiledb_files WHERE pafiledb_files.file_catid=cat_id) did not work. how do you find out the number of rows in a table with cat_id=n ??? Quote Link to comment Share on other sites More sharing options...
mwasif Posted April 13, 2008 Share Posted April 13, 2008 This will return number of rows from a table against a specific category. SELECT COUNT(*) FROM table_name WHERE cat_id=n Replace table_name with your actual table name and n with category id. Quote Link to comment Share on other sites More sharing options...
Sincere Posted April 13, 2008 Author Share Posted April 13, 2008 This will return number of rows from a table against a specific category. SELECT COUNT(*) FROM table_name WHERE cat_id=n Replace table_name with your actual table name and n with category id. shukraaaaaaaaaaaaaaan thank you thank you thank you Quote Link to comment Share on other sites More sharing options...
mwasif Posted April 13, 2008 Share Posted April 13, 2008 Jazeeran Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.