mysql_affected_rows() :- Returns the number of affected rows in previous...
mysql_affected_rows() is very useful function when we need to know how many rows affected our last MySql operation. This function returns the number of affected rows by the last INSERT, UPDATE, REPLACE...
View ArticleFind duplicate records in mysql
When you need to fetch duplicate records from mysql database , run below query in your phpmyadmin interface. SELECT count('fieldname') AS c FROM 'tablename' GROUP BY 'fieldname1','fieldname1' HAVING...
View ArticleHow MySQL Uses Indexes
Some MySQL index Facts MySQL indexes are used to find rows with specific column values quickly. Without an index, MySQL must begin with the first raw and then read through entire table to find rows. If...
View ArticleMysql – Calculate database size
You can calculate MySql database size using following steps. Login into mysql : mysql -h hostname -u username -p Above command will ask you to enter mysql password. After log in into mysql, run...
View Article