i want to delete ename from emp table and trainer table simultaneously...how it could be...pls help

You'll need two queries, but you can execute them in a transaction. That way if one fails to delete, the other isn't deleted either.

With MySQLi you can use multi_query.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.