Syntax error, try:
execute immediate 'create table temp as select * from emp where emp_name=''ABC''';