Today, my senior asked me a mysql_query to get number of affected rows, I said that’s very easy “mysql_affected_rows”, but suddenly he asked by which it is done, by using DDL or by DML? I have never heard that a query is DDL or DML.